diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-12-10 00:00:47 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2023-12-20 17:01:43 +0100 |
commit | 80e4a9987999e682366d60f43a7b2adefc48e222 (patch) | |
tree | 2907428dfaa77dbcba1d0a25fd2d04ec55f4892c | |
parent | pwm: lpc18xx-sct: Don't modify the cached period of other PWM outputs (diff) | |
download | linux-80e4a9987999e682366d60f43a7b2adefc48e222.tar.xz linux-80e4a9987999e682366d60f43a7b2adefc48e222.zip |
pwm: Drop two unused API functions
These functions are unused. Also I think there is no valid use case
where these are correct to be called. So drop them.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | include/linux/pwm.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 495af3627939..5dd665d8c909 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -111,12 +111,6 @@ static inline bool pwm_is_enabled(const struct pwm_device *pwm) return state.enabled; } -static inline void pwm_set_period(struct pwm_device *pwm, u64 period) -{ - if (pwm) - pwm->state.period = period; -} - static inline u64 pwm_get_period(const struct pwm_device *pwm) { struct pwm_state state; @@ -126,12 +120,6 @@ static inline u64 pwm_get_period(const struct pwm_device *pwm) return state.period; } -static inline void pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty) -{ - if (pwm) - pwm->state.duty_cycle = duty; -} - static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm) { struct pwm_state state; |