iio: potentiometer: ds1803: Add device specific read_raw function
authorJagath Jog J <jagathjog1996@gmail.com>
Wed, 23 Feb 2022 16:35:23 +0000 (22:05 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 26 Feb 2022 18:39:24 +0000 (18:39 +0000)
commit9b68725e90e44fdf54dd8838fb8105d1086b0211
tree11343b352ad3de1919d0ecac50953023692fbd2c
parent6450b62cb2f28c4a7faf0241fe43dc490e6ed856
iio: potentiometer: ds1803: Add device specific read_raw function

Added function pointer in the device specific structure to
call the appropriate device read_raw function, so that the
other type of devices with different read method can be
handled.

Signed-off-by: Jagath Jog J <jagathjog1996@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220223163525.13399-6-jagathjog1996@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/potentiometer/ds1803.c