]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Use -EINVAL for unsupported polarity
authorThierry Reding <thierry.reding@gmail.com>
Wed, 11 Nov 2020 20:18:11 +0000 (21:18 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:18:59 +0000 (14:18 +0100)
commitc73440c587932884b46828caec0b64c3bbe77e61
treeaf1909df89de7c189f4c1998f46fba31d8a6a63d
parent0f0ac9f0f1262e13c2e53895fe11ad4943f1ec33
pwm: Use -EINVAL for unsupported polarity

Instead of using a mix of -EOPNOTSUPP and -ENOTSUPP, use the more
standard -EINVAL to signal that the specified polarity value was
invalid.

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-crc.c
drivers/pwm/pwm-iqs620a.c
drivers/pwm/pwm-rcar.c