power: supply: bq27xxx: Add bulk transfer bus methods
authorMatt Ranostay <matt@ranostay.consulting>
Wed, 7 Jun 2017 18:37:54 +0000 (11:37 -0700)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Thu, 8 Jun 2017 14:29:29 +0000 (16:29 +0200)
commit14073f6614f62dc7862c83575b042424599cc867
tree9c06ffc1a43d767df4d085147c32450899ac81d5
parente2517f3bb44b1ac3772858f4bca0be05d36f492d
power: supply: bq27xxx: Add bulk transfer bus methods

Declare bus.write/read_bulk/write_bulk().
Add I2C write/read_bulk/write_bulk() to implement the above.
Add bq27xxx_write/read_block/write_block() helpers to call the above.

Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
Signed-off-by: Liam Breck <kernel@networkimprov.net>
Acked-by: "Andrew F. Davis" <afd@ti.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/bq27xxx_battery.c
drivers/power/supply/bq27xxx_battery_i2c.c
include/linux/power/bq27xxx_battery.h