iio: adc: Combine read functions for PMIC5 and PMIC7
authorJishnu Prakash <jprakash@codeaurora.org>
Tue, 23 Jun 2020 07:29:59 +0000 (12:59 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jun 2020 13:10:52 +0000 (14:10 +0100)
commit8f52a15aca1bea116ddb1b984a0630c1a9f69b1e
treea0ef56fb584c5e7ec150cf5c69a1023bd65035d0
parent4e130dc7b41348b13684f0758c26cc6cf72a3449
iio: adc: Combine read functions for PMIC5 and PMIC7

Add a common function used for read_raw callback for both PMIC5
and PMIC7 ADCs.

Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/qcom-spmi-adc5.c