]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Return -EINVAL for old-style drivers without .set_polarity callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 1 Mar 2021 18:23:07 +0000 (19:23 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 22 Mar 2021 10:55:20 +0000 (11:55 +0100)
commit17df89d66999d90c8c69fc1d3d86a621f1992e88
treea07b1d6742adafa775cc848e2929613903217ca0
parentcae33c815ab0a6750bc11795afbf68ba41403f62
pwm: Return -EINVAL for old-style drivers without .set_polarity callback

Since commit c73440c58793 ("pwm: Use -EINVAL for unsupported polarity")
all drivers implementing the apply callback are unified to return
-EINVAL if an unsupported polarity is requested. Do the same in the
compat code for old-style drivers.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c