pwm: cros-ec: Don't care about consumers in .get_state()
authorUwe Kleine-König <ukleinek@baylibre.com>
Fri, 7 Jun 2024 08:44:15 +0000 (10:44 +0200)
committerUwe Kleine-König <ukleinek@kernel.org>
Wed, 10 Jul 2024 15:52:47 +0000 (17:52 +0200)
commitf7d5463e2a8f1fef855af2b62a1f7b59b830ad05
treeaee51b267490c012b56f7b57eb1d798ca4e256c8
parent33c651a3fba9a3d380cb0e35ea207e048d39bed9
pwm: cros-ec: Don't care about consumers in .get_state()

The get_state() callback is never called (in a visible way) after there
is a consumer for a pwm device. The core handles loosing the information
about duty_cycle just fine.

Simplify the driver accordingly.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20240607084416.897777-6-u.kleine-koenig@baylibre.com
[Drop kdoc comment for channel to make W=1 builds happy]
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-cros-ec.c