Skip to content

Commit c0504f5

Browse files
pH5thierryreding
authored andcommitted
pwm: stm32: Make ch parameter unsigned
The channel parameter is only ever set to pwm->hwpwm. Make it unsigned int as well. Signed-off-by: Philipp Zabel <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Fabrice Gasnier <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent e495f47 commit c0504f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/pwm/pwm-stm32.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static int stm32_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm,
308308
return ret;
309309
}
310310

311-
static int stm32_pwm_config(struct stm32_pwm *priv, int ch,
311+
static int stm32_pwm_config(struct stm32_pwm *priv, unsigned int ch,
312312
int duty_ns, int period_ns)
313313
{
314314
unsigned long long prd, div, dty;
@@ -371,7 +371,7 @@ static int stm32_pwm_config(struct stm32_pwm *priv, int ch,
371371
return 0;
372372
}
373373

374-
static int stm32_pwm_set_polarity(struct stm32_pwm *priv, int ch,
374+
static int stm32_pwm_set_polarity(struct stm32_pwm *priv, unsigned int ch,
375375
enum pwm_polarity polarity)
376376
{
377377
u32 mask;
@@ -386,7 +386,7 @@ static int stm32_pwm_set_polarity(struct stm32_pwm *priv, int ch,
386386
return 0;
387387
}
388388

389-
static int stm32_pwm_enable(struct stm32_pwm *priv, int ch)
389+
static int stm32_pwm_enable(struct stm32_pwm *priv, unsigned int ch)
390390
{
391391
u32 mask;
392392
int ret;
@@ -411,7 +411,7 @@ static int stm32_pwm_enable(struct stm32_pwm *priv, int ch)
411411
return 0;
412412
}
413413

414-
static void stm32_pwm_disable(struct stm32_pwm *priv, int ch)
414+
static void stm32_pwm_disable(struct stm32_pwm *priv, unsigned int ch)
415415
{
416416
u32 mask;
417417

0 commit comments

Comments
 (0)