Commit c0504f59 authored by Philipp Zabel's avatar Philipp Zabel Committed by Thierry Reding

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: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarFabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent e495f472
...@@ -308,7 +308,7 @@ static int stm32_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm, ...@@ -308,7 +308,7 @@ static int stm32_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm,
return ret; return ret;
} }
static int stm32_pwm_config(struct stm32_pwm *priv, int ch, static int stm32_pwm_config(struct stm32_pwm *priv, unsigned int ch,
int duty_ns, int period_ns) int duty_ns, int period_ns)
{ {
unsigned long long prd, div, dty; unsigned long long prd, div, dty;
...@@ -371,7 +371,7 @@ static int stm32_pwm_config(struct stm32_pwm *priv, int ch, ...@@ -371,7 +371,7 @@ static int stm32_pwm_config(struct stm32_pwm *priv, int ch,
return 0; return 0;
} }
static int stm32_pwm_set_polarity(struct stm32_pwm *priv, int ch, static int stm32_pwm_set_polarity(struct stm32_pwm *priv, unsigned int ch,
enum pwm_polarity polarity) enum pwm_polarity polarity)
{ {
u32 mask; u32 mask;
...@@ -386,7 +386,7 @@ static int stm32_pwm_set_polarity(struct stm32_pwm *priv, int ch, ...@@ -386,7 +386,7 @@ static int stm32_pwm_set_polarity(struct stm32_pwm *priv, int ch,
return 0; return 0;
} }
static int stm32_pwm_enable(struct stm32_pwm *priv, int ch) static int stm32_pwm_enable(struct stm32_pwm *priv, unsigned int ch)
{ {
u32 mask; u32 mask;
int ret; int ret;
...@@ -411,7 +411,7 @@ static int stm32_pwm_enable(struct stm32_pwm *priv, int ch) ...@@ -411,7 +411,7 @@ static int stm32_pwm_enable(struct stm32_pwm *priv, int ch)
return 0; return 0;
} }
static void stm32_pwm_disable(struct stm32_pwm *priv, int ch) static void stm32_pwm_disable(struct stm32_pwm *priv, unsigned int ch)
{ {
u32 mask; u32 mask;
......
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