On Fri, Sep 9, 2016 at 11:17 AM, Bartosz Golaszewski <[email protected]> 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 <[email protected]> > Reviewed-by: Andy Shevchenko <[email protected]> Patch applied. Yours, Linus Walleij

