pwm: Drop function pwmchip_add_with_polarity()
authorUwe Kleine-König <uwe@kleine-koenig.org>
Mon, 7 Dec 2020 13:45:56 +0000 (14:45 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 22 Mar 2021 11:31:32 +0000 (12:31 +0100)
commit9666cec380d60808eb86d3be4caf84faeebe3081
treeb446d6966905c9c7bcffc2e444ac84da990b4e14
parent965ebe39c953a8248a45413c25833621529da03c
pwm: Drop function pwmchip_add_with_polarity()

pwmchip_add() only calls pwmchip_add_with_polarity() and nothing else. All
other users of pwmchip_add_with_polarity() are gone. So drop
pwmchip_add_with_polarity() and move the code instead to pwmchip_add().

The initial assignment to pwm->state.polarity is dropped. In every correct
usage of the PWM API this value is overwritten later anyhow.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c
include/linux/pwm.h