Re: [PATCH v5 6/6] gpio: pca953x: make the define names consistent

From: Andy Shevchenko
Date: Thu Sep 08 2016 - 08:27:45 EST


On Thu, 2016-09-08 at 12:48 +0200, Bartosz Golaszewski wrote:
> The register offset defines for the pca953x and pca957x expander
> families should have the same names to better reflect their similar
> purposes.



Â
> Â chip->regs = &pca957x_regs;
> Â
> - ret = pca953x_read_regs(chip, PCA957X_OUT, chip->reg_output);
> + ret = pca953x_read_regs(chip, PCA957X_OUTPUT, chip-
> >reg_output);
> Â if (ret)
> Â goto out;
> - ret = pca953x_read_regs(chip, PCA957X_CFG, chip-
> >reg_direction);
> + ret = pca953x_read_regs(chip, PCA957X_DIRECTION, chip-
> >reg_direction);

Bu we may use chip->regs->direction here, right? And output before.Â

> Â if (ret)
> Â goto out;
> Â

--
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy