Skip to content

Commit da804fa

Browse files
author
Uwe Kleine-König
committed
pwm: Drop pwm_apply_state()
This function is not supposed to be used any more since commit c748a6d ("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 <[email protected]>
1 parent f8b03e5 commit da804fa

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

include/linux/pwm.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -563,13 +563,6 @@ static inline void pwm_apply_args(struct pwm_device *pwm)
563563
pwm_apply_might_sleep(pwm, &state);
564564
}
565565

566-
/* only for backwards-compatibility, new code should not use this */
567-
static inline int pwm_apply_state(struct pwm_device *pwm,
568-
const struct pwm_state *state)
569-
{
570-
return pwm_apply_might_sleep(pwm, state);
571-
}
572-
573566
struct pwm_lookup {
574567
struct list_head list;
575568
const char *provider;

0 commit comments

Comments
 (0)