]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b792fc57fa43876d9de7f93eda2e7c8fef6ea0a
treeb446d6966905c9c7bcffc2e444ac84da990b4e14
parent70821499cf53ad543747feedaf631b2dc9ec2e61
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