staging:iio:ade7854: Remove read_reg_* duplications
authorRodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Fri, 23 Mar 2018 14:27:27 +0000 (11:27 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 24 Mar 2018 13:28:05 +0000 (13:28 +0000)
commit8ea0fa7cd425448e24da38dfe4ea78d3aa69b48c
tree4bf868e931ccb20bea45d1f970de78aedd0ada86
parente6182b2d8afcc776112a9f81b63dfc0ff08b9df7
staging:iio:ade7854: Remove read_reg_* duplications

The original code had a read function per data size; after updates, all
read functions tasks were centralized in a single function, but the old
signature was kept to maintain the module working without problems. This
patch removes a set of duplications associated with read_reg_*, and
update the areas that calling the old interface by the new one.

Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/meter/ade7854-i2c.c
drivers/staging/iio/meter/ade7854-spi.c
drivers/staging/iio/meter/ade7854.c
drivers/staging/iio/meter/ade7854.h