Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1481226 > unrolled thread

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

Started byLinus Walleij <linus.walleij@linaro.org>
First post2016-09-12 14:50 +0200
Last post2016-09-12 14:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v6 3/5] gpio: pca953x: refactor pca953x_read_regs() Linus Walleij <linus.walleij@linaro.org> - 2016-09-12 14:50 +0200

#1481226 — Re: [PATCH v6 3/5] gpio: pca953x: refactor pca953x_read_regs()

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-09-12 14:50 +0200
SubjectRe: [PATCH v6 3/5] gpio: pca953x: refactor pca953x_read_regs()
Message-ID<sgyQp-3n9-1@gated-at.bofh.it>
On Fri, Sep 9, 2016 at 11:17 AM, Bartosz Golaszewski
<bgolaszewski@baylibre.com> 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 <bgolaszewski@baylibre.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied.

Yours,
Linus Walleij

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web