]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Remove unused function pwmchip_add_inversed()
authorUwe Kleine-König <uwe@kleine-koenig.org>
Sat, 5 Dec 2020 16:19:24 +0000 (17:19 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:19:01 +0000 (14:19 +0100)
commitf3f4023a84cabe860948a39d3c7fea48ed7dbc56
tree97cb70337afe23ad5fce41bc8cbc69ea4e2dffcc
parent9cd7bc14ecd606c9af0e251a338f1c7df0192263
pwm: Remove unused function pwmchip_add_inversed()

This is only defined with CONFIG_PWM unset and was introduced together
with pwmchip_add_with_polarity() (which is only defined with CONFIG_PWM
enabled). I guess the series that introduced pwmchip_add_with_polarity()
had a different concept in earlier revisions and the !CONFIG_PWM part
was just not updated accordingly.

Given that there is no implementation for pwmchip_add_with_polarity()
without CONFIG_PWM, just drop pwmchip_add_inversed() instead of renaming
it to pwmchip_add_with_polarity().

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
include/linux/pwm.h