iio: adc: qcom-spmi-adc5: Use driver datasheet_name instead of DT label
authorMarijn Suijten <marijn.suijten@somainline.org>
Mon, 1 May 2023 23:17:34 +0000 (01:17 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 13 May 2023 17:28:10 +0000 (18:28 +0100)
commite93cde03abf72fd7c98c08107dbeb3b9dfe9dca5
tree0a0f21413b364939acc25defb1fe610c7eae98cb
parent123627ad03d9915f6a6ecb69bb86a80da69ee972
iio: adc: qcom-spmi-adc5: Use driver datasheet_name instead of DT label

iio_chan_spec::datasheet_name expects a channel/pin name on the hardware
part, i.e. from its datasheet, instead of a friendly name from DT which
typically describes the use of said channel.  GPIO channels are commonly
specialized in QCOM board DTS based on what a - typically thermistor -
is connected to.

Also rename adc5_channel_prop::datasheet_name to channel_name to that
effect.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230502-iio-adc-propagate-fw-node-label-v3-2-6be5db6e6b5a@somainline.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/qcom-spmi-adc5.c