Re: [PATCH v2 5/5] gpio: pca953x: refactor pca953x_read_regs()

2016-09-07 Thread Andy Shevchenko
On Wed, 2016-09-07 at 11:24 +0200, Bartosz Golaszewski wrote: > Avoid the unnecessary if-else in pca953x_read_regs() by spltting the > routine into smaller, specialized functions and calling the right one > via a function pointer held in struct pca953x. > > Signed-off-by: Bartosz Golaszewski > --

[PATCH v2 5/5] gpio: pca953x: refactor pca953x_read_regs()

2016-09-07 Thread Bartosz Golaszewski
Avoid the unnecessary if-else in pca953x_read_regs() by spltting the routine into smaller, specialized functions and calling the right one via a function pointer held in struct pca953x. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-pca953x.c | 55 --