summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-07-07 18:28:35 +0200
committerThierry Reding <thierry.reding@gmail.com>2021-09-02 21:38:56 +0200
commit8083f58d08fd52f547c0a62c0f4e448e15e6726b (patch)
treeb65a0e9d56e26a5647817cb7253b7317808dff2e /include
parentpwm: sun4i: Don't check the return code of pwmchip_remove() (diff)
downloadlinux-8083f58d08fd52f547c0a62c0f4e448e15e6726b.tar.xz
linux-8083f58d08fd52f547c0a62c0f4e448e15e6726b.zip
pwm: Make pwmchip_remove() return void
Since some time pwmchip_remove() always returns 0 so the return value isn't usefull. Now that all callers are converted to ignore its value the function can be changed to return void. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pwm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index a0b7e43049d5..725c9b784e60 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -404,7 +404,7 @@ int pwm_set_chip_data(struct pwm_device *pwm, void *data);
void *pwm_get_chip_data(struct pwm_device *pwm);
int pwmchip_add(struct pwm_chip *chip);
-int pwmchip_remove(struct pwm_chip *chip);
+void pwmchip_remove(struct pwm_chip *chip);
int devm_pwmchip_add(struct device *dev, struct pwm_chip *chip);