Skip to content

Commit 526af93

Browse files
ukleineknunojsa
authored andcommitted
pwm: Drop changes related to pwm_config() compared to mainline
pwm_config() isn't recommended to be used any more and (since the previous commit) the vendor changes don't introduce any new user. So drop the changes introduced in commit 2a1b16e ("pwm: Convert period and duty cycle to u64"). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 parent b2c02ff commit 526af93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/pwm.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ int pwm_adjust_config(struct pwm_device *pwm);
325325
*
326326
* Returns: 0 on success or a negative error code on failure.
327327
*/
328-
static inline int pwm_config(struct pwm_device *pwm, u64 duty_ns,
329-
u64 period_ns)
328+
static inline int pwm_config(struct pwm_device *pwm, int duty_ns,
329+
int period_ns)
330330
{
331331
struct pwm_state state;
332332

@@ -436,8 +436,8 @@ static inline int pwm_adjust_config(struct pwm_device *pwm)
436436
return -ENOTSUPP;
437437
}
438438

439-
static inline int pwm_config(struct pwm_device *pwm, u64 duty_ns,
440-
u64 period_ns)
439+
static inline int pwm_config(struct pwm_device *pwm, int duty_ns,
440+
int period_ns)
441441
{
442442
might_sleep();
443443
return -EINVAL;

0 commit comments

Comments
 (0)