mbox series

[V3,00/14] gpio: pca953x: Code cleanup and regmap conversion

Message ID 20181215142605.15397-1-marek.vasut+renesas@gmail.com
Headers show
Series gpio: pca953x: Code cleanup and regmap conversion | expand

Message

Marek Vasut Dec. 15, 2018, 2:25 p.m. UTC
Clean the PCA953x driver up, convert to regmap and add suspend/resume support.

Marek Vasut (14):
  gpio: pca953x: Deduplicate the bank_shift
  gpio: pca953x: Fix AI overflow on PCAL6524
  gpio: pca953x: Repair multi-byte IO address increment on PCA9575
  gpio: pca953x: Unify pca95{3,7}x_write_regs_16()
  gpio: pca953x: Unify pca953x_{read,write}_regs_{16,24}()
  gpio: pca953x: Unify pca953x_{read,write}_regs_{8,mul}()
  gpio: pca953x: Factor out common code from device_pca95xx_init()
  gpio: pca953x: Zap ad-hoc I2C block write in multi GPIO set
  gpio: pca953x: Extract the register address mangling to single
    function
  gpio: pca953x: Perform basic regmap conversion
  gpio: pca953x: Zap ad-hoc reg_direction cache
  gpio: pca953x: Zap ad-hoc reg_output cache
  gpio: pca953x: Zap single use of pca953x_read_single()
  gpio: pca953x: Restore registers after suspend/resume cycle

 drivers/gpio/Kconfig        |   1 +
 drivers/gpio/gpio-pca953x.c | 484 ++++++++++++++++++++++--------------
 2 files changed, 303 insertions(+), 182 deletions(-)

V2: Minor fixes in 01,02,14/14
V3: The only change is in 10/14, where we select REGMAP_I2C in Kconfig,
    since the driver uses regmap now

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Comments

Linus Walleij Dec. 16, 2018, 12:06 a.m. UTC | #1
On Sat, Dec 15, 2018 at 3:26 PM Marek Vasut <marek.vasut@gmail.com> wrote:

> V3: The only change is in 10/14, where we select REGMAP_I2C in Kconfig,
>     since the driver uses regmap now

Oh I already merged v2, can you send an incremental patch just
fixing this?

Yours,
Linus Walleij
Marek Vasut Dec. 16, 2018, 5:39 p.m. UTC | #2
On 12/16/2018 01:06 AM, Linus Walleij wrote:
> On Sat, Dec 15, 2018 at 3:26 PM Marek Vasut <marek.vasut@gmail.com> wrote:
> 
>> V3: The only change is in 10/14, where we select REGMAP_I2C in Kconfig,
>>     since the driver uses regmap now
> 
> Oh I already merged v2, can you send an incremental patch just
> fixing this?

Done.