OSDN Git Service

iio: adc: ti-ads1015: Replace data_rate with chip data struct ads1015_data
authorMarek Vasut <marex@denx.de>
Mon, 28 Mar 2022 19:47:24 +0000 (21:47 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 4 Apr 2022 08:11:26 +0000 (09:11 +0100)
commitad202fe8edd18536198f7b98ec1893b81be490af
tree991db0dbd086d32082d7e4a65d1f38b9cbd51a94
parent0ca269a4ae3982845a7ff97b8feaaf3562ac1c8d
iio: adc: ti-ads1015: Replace data_rate with chip data struct ads1015_data

Instead of storing only data_rate in private data, store pointer to the
whole chip data and use the data_rate from chip data throughout the driver.
No functional change. This is done in preparation for switching to
read_avail().

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20220328194725.149150-9-marex@denx.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads1015.c