Skip to content

Commit 80e4a99

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 4430d02 commit 80e4a99

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

include/linux/pwm.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ static inline bool pwm_is_enabled(const struct pwm_device *pwm)
111111
return state.enabled;
112112
}
113113

114-
static inline void pwm_set_period(struct pwm_device *pwm, u64 period)
115-
{
116-
if (pwm)
117-
pwm->state.period = period;
118-
}
119-
120114
static inline u64 pwm_get_period(const struct pwm_device *pwm)
121115
{
122116
struct pwm_state state;
@@ -126,12 +120,6 @@ static inline u64 pwm_get_period(const struct pwm_device *pwm)
126120
return state.period;
127121
}
128122

129-
static inline void pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty)
130-
{
131-
if (pwm)
132-
pwm->state.duty_cycle = duty;
133-
}
134-
135123
static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm)
136124
{
137125
struct pwm_state state;

0 commit comments

Comments
 (0)