[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75VewDvjDJjvKgQ_5v_=Kxp6B1js0J+PrsfP-WC+qa=ogtQ@mail.gmail.com>
Date: Wed, 13 May 2020 00:09:07 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Joe Perches <joe@...ches.com>
Cc: Douglas Anderson <dianders@...omium.org>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <bgolaszewski@...libre.com>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/2] gpio: Make "offset" and "unsigned int", not just "unsigned"
On Wed, Apr 29, 2020 at 3:40 AM Joe Perches <joe@...ches.com> wrote:
> On Tue, 2020-04-28 at 17:23 -0700, Douglas Anderson wrote:
...
> + int (*request)(struct gpio_chip *gc, unsigned int offset);
> + void (*free)(struct gpio_chip *gc, unsigned int offset);
> + int (*get_direction)(struct gpio_chip *gc, unsigned int offset);
> + int (*direction_input)(struct gpio_chip *gc, unsigned int offset);
> + int (*direction_output)(struct gpio_chip *gc,
> + unsigned int offset, int value);
Here...
> + int (*get)(struct gpio_chip *gc, unsigned int offset);
> + int (*get_multiple)(struct gpio_chip *gc,
> + unsigned long *mask, unsigned long *bits);
> + void (*set)(struct gpio_chip *gc, unsigned int offset, int value);
> + void (*set_multiple)(struct gpio_chip *gc,
> + unsigned long *mask, unsigned long *bits);
> + int (*set_config)(struct gpio_chip *gc,
> + unsigned int offset, unsigned long config);
...and here perhaps offset to move to previous line despite checkpatch warnings.
> + int (*to_irq)(struct gpio_chip *gc, unsigned int offset);
> + void (*dbg_show)(struct seq_file *s, struct gpio_chip *gc);
> + int (*init_valid_mask)(struct gpio_chip *gc,
> + unsigned long *valid_mask,
> + unsigned int ngpios);
> + int (*add_pin_ranges)(struct gpio_chip *gc);
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists