hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/iio/adc/qcom-pm8xxx-xoadc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Qualcomm PM8xxx PMIC XOADC driver
34 *
....@@ -119,7 +120,7 @@
119120 #define ADC_ARB_USRP_DATA0 0x19D
120121 #define ADC_ARB_USRP_DATA1 0x19C
121122
122
-/**
123
+/*
123124 * Physical channels which MUST exist on all PM variants in order to provide
124125 * proper reference points for calibration.
125126 *
....@@ -387,6 +388,7 @@
387388 * struct pm8xxx_xoadc - state container for the XOADC
388389 * @dev: pointer to device
389390 * @map: regmap to access registers
391
+ * @variant: XOADC variant characteristics
390392 * @vref: reference voltage regulator
391393 * characteristics of the channels, and sensible default settings
392394 * @nchans: number of channels, configured by the device tree
....@@ -704,8 +706,8 @@
704706 * mux.
705707 */
706708 if (iiospec->args_count != 2) {
707
- dev_err(&indio_dev->dev, "wrong number of arguments for %s need 2 got %d\n",
708
- iiospec->np->name,
709
+ dev_err(&indio_dev->dev, "wrong number of arguments for %pOFn need 2 got %d\n",
710
+ iiospec->np,
709711 iiospec->args_count);
710712 return -EINVAL;
711713 }
....@@ -932,8 +934,6 @@
932934 goto out_disable_vref;
933935 }
934936
935
- indio_dev->dev.parent = dev;
936
- indio_dev->dev.of_node = np;
937937 indio_dev->name = variant->name;
938938 indio_dev->modes = INDIO_DIRECT_MODE;
939939 indio_dev->info = &pm8xxx_xoadc_info;