Commit c2e64baa authored by Thierry Reding's avatar Thierry Reding

pwm: Add pwm_apply_state() compatibility stub

In order to make the transition to the new pwm_apply_might_sleep() a bit
smoother, add a compatibility stub. This will prevent new calls to the
old function introduced via other subsystems from breaking builds. Once
the next merge window has closed we can take another stab at removing
the stub.
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 88179188
...@@ -537,6 +537,13 @@ static inline void pwm_apply_args(struct pwm_device *pwm) ...@@ -537,6 +537,13 @@ static inline void pwm_apply_args(struct pwm_device *pwm)
pwm_apply_might_sleep(pwm, &state); 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 pwm_lookup {
struct list_head list; struct list_head list;
const char *provider; const char *provider;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment