+1
-8
drivers/pwm/core.c
+1
-8
drivers/pwm/core.c
···
472
472
if (err)
473
473
return err;
474
474
475
-
/*
476
-
* .apply might have to round some values in *state, if possible
477
-
* read the actually implemented value back.
478
-
*/
479
-
if (chip->ops->get_state)
480
-
chip->ops->get_state(chip, pwm, &pwm->state);
481
-
else
482
-
pwm->state = *state;
475
+
pwm->state = *state;
483
476
} else {
484
477
/*
485
478
* FIXME: restore the initial state in case of error.