From: Uwe Kleine-König Date: Sat, 5 Dec 2020 16:19:24 +0000 (+0100) Subject: pwm: Remove unused function pwmchip_add_inversed() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3df23a316c4a5d1764b034c71c29d67a17d5299f;p=linux.git 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 Acked-by: Lee Jones Signed-off-by: Thierry Reding --- diff --git a/include/linux/pwm.h b/include/linux/pwm.h index a13ff383fa1d5..e4d84d4db2936 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -473,11 +473,6 @@ static inline int pwmchip_add(struct pwm_chip *chip) return -EINVAL; } -static inline int pwmchip_add_inversed(struct pwm_chip *chip) -{ - return -EINVAL; -} - static inline int pwmchip_remove(struct pwm_chip *chip) { return -EINVAL;