On Fri, Sep 9, 2016 at 11:17 AM, Bartosz Golaszewski
<bgolaszew...@baylibre.com> wrote:

> There are multiple places in the driver code where a
> switch (chip->chip_type) is used to determine the proper register
> offset.
>
> Unduplicate the code by adding a simple structure holding the possible
> offsets that differ between the pca953x and pca957x chip families and
> use it to avoid the checks.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
> Reviewed-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>

Patch applied.

Yours,
Linus Walleij

Reply via email to