Skip to contentSkip to conversation

pwm: Drop pwm_apply_state()

PATCH New Uwe Kleine-König 1 participant 1 message Jun 14, 2024 PWM

lore
Share & tools
lore

Uwe Kleine-König

author maintainer
#0 lore raw

PATCH 1/1 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.

---
Hello,

with Sean patch fixing ts-nbus[1], the last user of pwm_apply_state() is gone, so pwm_apply_state() can be dropped now.

Thanks for reminding me of this task.

Best regards
Uwe

[1] https://lore.kernel.org/linux-pwm/[email protected]

 include/linux/pwm.h | 7 -------
 1 file changed, 7 deletions(-)
include/linux/pwm.h +0 -7
index 75ad0d2fd949..f8c2dc12dbd3 100644
@@ -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;

base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
prerequisite-patch-id: 51738c9613a88df12ce0963aa6bdb92fa15262e1

Signature · 1 line
2.43.0