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)
commit2b1c1a5d51484f4f44d662d146e443498d0bedd2
treeaf1909df89de7c189f4c1998f46fba31d8a6a63d
parentf14a8f0ef981387809b4d6fec857bfd8261b8f15
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