Re: [PATCH v4 3/3] Staging: iio: adt7316: Add regmap support

2019-01-26 Thread Jonathan Cameron
On Sat, 26 Jan 2019 23:04:02 +0530 Shreeya Patel wrote: > Both i2c and spi drivers have functions for reading and writing > to/from registers. Remove this redundant and common code by using > regmap API. > > Signed-off-by: Shreeya Patel I hadn't previously looked closely at the spi side of

[PATCH v4 3/3] Staging: iio: adt7316: Add regmap support

2019-01-26 Thread Shreeya Patel
Both i2c and spi drivers have functions for reading and writing to/from registers. Remove this redundant and common code by using regmap API. Signed-off-by: Shreeya Patel --- drivers/staging/iio/addac/adt7316-i2c.c | 56 +++--- drivers/staging/iio/addac/adt7316-spi.c | 74 +++--