[PATCH] pwm: atmel-tcb: use 'unsigned int' instead of 'unsigned'
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Tue Jun 7 23:45:10 PDT 2022
On Wed, Jun 08, 2022 at 09:06:07AM +0800, Jilin Yuan wrote:
> Replace the 'unsigned' with 'unsigned int' which is more accurate.
What was your motivation? To please checkpatch? Please mention this in
the commit log.
> Signed-off-by: Jilin Yuan <yuanjilin at cdjrlc.com>
> ---
> drivers/pwm/pwm-atmel-tcb.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm-atmel-tcb.c
> index 3977a0f9d132..d6977e4e71f3 100644
> --- a/drivers/pwm/pwm-atmel-tcb.c
> +++ b/drivers/pwm/pwm-atmel-tcb.c
> @@ -35,9 +35,9 @@
>
> struct atmel_tcb_pwm_device {
> enum pwm_polarity polarity; /* PWM polarity */
> - unsigned div; /* PWM clock divider */
> - unsigned duty; /* PWM duty expressed in clk cycles */
> - unsigned period; /* PWM period expressed in clk cycles */
> + unsigned int div; /* PWM clock divider */
> + unsigned int duty; /* PWM duty expressed in clk cycles */
> + unsigned int period; /* PWM period expressed in clk cycles */
Please reindent the comments such they keep to be aligned.
> };
>
> struct atmel_tcb_channel {
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220608/a1105202/attachment.sig>
More information about the linux-arm-kernel
mailing list