Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-07 Thread Linus Walleij
On Wed, Aug 2, 2017 at 2:06 PM, Andy Shevchenko wrote: > On Tue, 2017-08-01 at 12:24 -0700, Dmitry Torokhov wrote: >> On Wed, Jul 26, 2017 at 01:21:37PM +0300, Andy Shevchenko wrote: >> > On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: >> > > When

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-07 Thread Linus Walleij
On Wed, Aug 2, 2017 at 2:06 PM, Andy Shevchenko wrote: > On Tue, 2017-08-01 at 12:24 -0700, Dmitry Torokhov wrote: >> On Wed, Jul 26, 2017 at 01:21:37PM +0300, Andy Shevchenko wrote: >> > On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: >> > > When converting legacy board to use gpiod

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-02 Thread Andy Shevchenko
On Tue, 2017-08-01 at 12:24 -0700, Dmitry Torokhov wrote: > On Wed, Jul 26, 2017 at 01:21:37PM +0300, Andy Shevchenko wrote: > > On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: > > > When converting legacy board to use gpiod API() there migt be > > > several > > > lookup tables in board

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-02 Thread Andy Shevchenko
On Tue, 2017-08-01 at 12:24 -0700, Dmitry Torokhov wrote: > On Wed, Jul 26, 2017 at 01:21:37PM +0300, Andy Shevchenko wrote: > > On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: > > > When converting legacy board to use gpiod API() there migt be > > > several > > > lookup tables in board

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-02 Thread Mika Westerberg
On Tue, Jul 25, 2017 at 01:58:00PM -0700, Dmitry Torokhov wrote: > +void gpiod_add_lookup_tables(struct gpiod_lookup_table **tables, > + unsigned int n) This should probably be size_t instead. Regardless this looks useful so, Reviewed-by: Mika Westerberg

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-02 Thread Mika Westerberg
On Tue, Jul 25, 2017 at 01:58:00PM -0700, Dmitry Torokhov wrote: > +void gpiod_add_lookup_tables(struct gpiod_lookup_table **tables, > + unsigned int n) This should probably be size_t instead. Regardless this looks useful so, Reviewed-by: Mika Westerberg

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-01 Thread Dmitry Torokhov
On Wed, Jul 26, 2017 at 01:21:37PM +0300, Andy Shevchenko wrote: > On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: > > When converting legacy board to use gpiod API() there migt be several > > lookup tables in board file, let's provide a way to register them all > > at > > once. > >

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-01 Thread Dmitry Torokhov
On Wed, Jul 26, 2017 at 01:21:37PM +0300, Andy Shevchenko wrote: > On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: > > When converting legacy board to use gpiod API() there migt be several > > lookup tables in board file, let's provide a way to register them all > > at > > once. > >

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-07-26 Thread Andy Shevchenko
On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: > When converting legacy board to use gpiod API() there migt be several > lookup tables in board file, let's provide a way to register them all > at > once. Looking into the code which is using several GPIO look up tables I noticed that

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-07-26 Thread Andy Shevchenko
On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: > When converting legacy board to use gpiod API() there migt be several > lookup tables in board file, let's provide a way to register them all > at > once. Looking into the code which is using several GPIO look up tables I noticed that

[PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-07-25 Thread Dmitry Torokhov
When converting legacy board to use gpiod API() there migt be several lookup tables in board file, let's provide a way to register them all at once. Signed-off-by: Dmitry Torokhov --- drivers/gpio/gpiolib.c | 18 ++ include/linux/gpio/machine.h |

[PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-07-25 Thread Dmitry Torokhov
When converting legacy board to use gpiod API() there migt be several lookup tables in board file, let's provide a way to register them all at once. Signed-off-by: Dmitry Torokhov --- drivers/gpio/gpiolib.c | 18 ++ include/linux/gpio/machine.h | 2 ++ 2 files changed, 20