You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iio: adc: ad7944: Convert to use pwm_apply_state()
pwm_config() is an old API function that isn't recommended any more.
This driver is a prime example for the reason: Either you need more than
one function call (and so several hardware parameter calculations and
several hardware modifications resulting in more glitches than usally
necessary) or you have to rely on previous hardware state (here: that
the PWM is enabled, because the driver doesn't ensure proper operation
if the PWM happens to be disabled).
Convert to pwm_apply_state() which is the designated replacement without
these disadvantages.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
0 commit comments