All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] gpio: mxs: Prefer unsigned int to bare use of unsigned
@ 2021-06-24 10:15 Jinchao Wang
  2021-06-25 10:34   ` Bartosz Golaszewski
  0 siblings, 1 reply; 3+ messages in thread
From: Jinchao Wang @ 2021-06-24 10:15 UTC (permalink / raw)
  To: =?gb18030?B?YW5keS5zaGV2Y2hlbmtv?=,
	=?gb18030?B?YmdvbGFzemV3c2tp?=, =?gb18030?B?c2hhd25ndW8=?=
  Cc: =?gb18030?B?cy5oYXVlcg==?=,
	=?gb18030?B?bGludXgtYXJtLWtlcm5lbA==?=,
	=?gb18030?B?bGludXgtZ3Bpbw==?=, =?gb18030?B?bGludXgta2VybmVs?=,
	=?gb18030?B?zfW98LOs?=

Fix checkpatch warnings:
    WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Jinchao Wang <wjc@cdjrlc.com>
---
- changes for v2:
- Use full prefix

---
 drivers/gpio/gpio-mxs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c
index 524b668eb1ac..31a336b86ff2 100644
--- a/drivers/gpio/gpio-mxs.c
+++ b/drivers/gpio/gpio-mxs.c
@@ -229,14 +229,14 @@ static int mxs_gpio_init_gc(struct mxs_gpio_port *port, int irq_base)
 	return rv;
 }
 
-static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned offset)
+static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned int offset)
 {
 	struct mxs_gpio_port *port = gpiochip_get_data(gc);
 
 	return irq_find_mapping(port->domain, offset);
 }
 
-static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned offset)
+static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned int offset)
 {
 	struct mxs_gpio_port *port = gpiochip_get_data(gc);
 	u32 mask = 1 << offset;
-- 
2.31.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] gpio: mxs: Prefer unsigned int to bare use of unsigned
  2021-06-24 10:15 [PATCH v2] gpio: mxs: Prefer unsigned int to bare use of unsigned Jinchao Wang
@ 2021-06-25 10:34   ` Bartosz Golaszewski
  0 siblings, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2021-06-25 10:34 UTC (permalink / raw)
  To: Jinchao Wang
  Cc: andy.shevchenko, shawnguo, s.hauer, linux-arm-kernel, linux-gpio,
	linux-kernel

On Thu, Jun 24, 2021 at 12:15 PM Jinchao Wang <wjc@cdjrlc.com> wrote:
>
> Fix checkpatch warnings:
>     WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
>
> Signed-off-by: Jinchao Wang <wjc@cdjrlc.com>
> ---
> - changes for v2:
> - Use full prefix
>
> ---
>  drivers/gpio/gpio-mxs.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c
> index 524b668eb1ac..31a336b86ff2 100644
> --- a/drivers/gpio/gpio-mxs.c
> +++ b/drivers/gpio/gpio-mxs.c
> @@ -229,14 +229,14 @@ static int mxs_gpio_init_gc(struct mxs_gpio_port *port, int irq_base)
>         return rv;
>  }
>
> -static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned offset)
> +static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned int offset)
>  {
>         struct mxs_gpio_port *port = gpiochip_get_data(gc);
>
>         return irq_find_mapping(port->domain, offset);
>  }
>
> -static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned offset)
> +static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned int offset)
>  {
>         struct mxs_gpio_port *port = gpiochip_get_data(gc);
>         u32 mask = 1 << offset;
> --
> 2.31.1
>

Applied, thanks!

Bartosz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] gpio: mxs: Prefer unsigned int to bare use of unsigned
@ 2021-06-25 10:34   ` Bartosz Golaszewski
  0 siblings, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2021-06-25 10:34 UTC (permalink / raw)
  To: Jinchao Wang
  Cc: andy.shevchenko, shawnguo, s.hauer, linux-arm-kernel, linux-gpio,
	linux-kernel

On Thu, Jun 24, 2021 at 12:15 PM Jinchao Wang <wjc@cdjrlc.com> wrote:
>
> Fix checkpatch warnings:
>     WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
>
> Signed-off-by: Jinchao Wang <wjc@cdjrlc.com>
> ---
> - changes for v2:
> - Use full prefix
>
> ---
>  drivers/gpio/gpio-mxs.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c
> index 524b668eb1ac..31a336b86ff2 100644
> --- a/drivers/gpio/gpio-mxs.c
> +++ b/drivers/gpio/gpio-mxs.c
> @@ -229,14 +229,14 @@ static int mxs_gpio_init_gc(struct mxs_gpio_port *port, int irq_base)
>         return rv;
>  }
>
> -static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned offset)
> +static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned int offset)
>  {
>         struct mxs_gpio_port *port = gpiochip_get_data(gc);
>
>         return irq_find_mapping(port->domain, offset);
>  }
>
> -static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned offset)
> +static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned int offset)
>  {
>         struct mxs_gpio_port *port = gpiochip_get_data(gc);
>         u32 mask = 1 << offset;
> --
> 2.31.1
>

Applied, thanks!

Bartosz

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-25 11:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24 10:15 [PATCH v2] gpio: mxs: Prefer unsigned int to bare use of unsigned Jinchao Wang
2021-06-25 10:34 ` Bartosz Golaszewski
2021-06-25 10:34   ` Bartosz Golaszewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.