aboutsummaryrefslogtreecommitdiff
path: root/include/linux/pwm.h
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@kernel.org>2024-06-14 17:39:00 +0200
committerUwe Kleine-König <ukleinek@kernel.org>2024-07-10 17:52:47 +0200
commitda804fa9bc718e4210ec27cc0457ecc1eb073a14 (patch)
tree546c887fbfa89310cd0892d7233083d50fe78287 /include/linux/pwm.h
parentf8b03e5c728ff6cf76f9db23dbfaf75b7eeb0a12 (diff)
pwm: Drop pwm_apply_state()
This function is not supposed to be used any more since commit c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()") that is included in v6.8-rc1. Two kernel releases should be enough for everyone to adapt, so drop the old function that was introduced as a compatibility stub for the transition. Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'include/linux/pwm.h')
-rw-r--r--include/linux/pwm.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index 75ad0d2fd949..f8c2dc12dbd3 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -563,13 +563,6 @@ static inline void pwm_apply_args(struct pwm_device *pwm)
pwm_apply_might_sleep(pwm, &state);
}
-/* only for backwards-compatibility, new code should not use this */
-static inline int pwm_apply_state(struct pwm_device *pwm,
- const struct pwm_state *state)
-{
- return pwm_apply_might_sleep(pwm, state);
-}
-
struct pwm_lookup {
struct list_head list;
const char *provider;