.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Qualcomm PM8xxx PMIC XOADC driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
119 | 120 | #define ADC_ARB_USRP_DATA0 0x19D |
---|
120 | 121 | #define ADC_ARB_USRP_DATA1 0x19C |
---|
121 | 122 | |
---|
122 | | -/** |
---|
| 123 | +/* |
---|
123 | 124 | * Physical channels which MUST exist on all PM variants in order to provide |
---|
124 | 125 | * proper reference points for calibration. |
---|
125 | 126 | * |
---|
.. | .. |
---|
387 | 388 | * struct pm8xxx_xoadc - state container for the XOADC |
---|
388 | 389 | * @dev: pointer to device |
---|
389 | 390 | * @map: regmap to access registers |
---|
| 391 | + * @variant: XOADC variant characteristics |
---|
390 | 392 | * @vref: reference voltage regulator |
---|
391 | 393 | * characteristics of the channels, and sensible default settings |
---|
392 | 394 | * @nchans: number of channels, configured by the device tree |
---|
.. | .. |
---|
704 | 706 | * mux. |
---|
705 | 707 | */ |
---|
706 | 708 | 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, |
---|
709 | 711 | iiospec->args_count); |
---|
710 | 712 | return -EINVAL; |
---|
711 | 713 | } |
---|
.. | .. |
---|
932 | 934 | goto out_disable_vref; |
---|
933 | 935 | } |
---|
934 | 936 | |
---|
935 | | - indio_dev->dev.parent = dev; |
---|
936 | | - indio_dev->dev.of_node = np; |
---|
937 | 937 | indio_dev->name = variant->name; |
---|
938 | 938 | indio_dev->modes = INDIO_DIRECT_MODE; |
---|
939 | 939 | indio_dev->info = &pm8xxx_xoadc_info; |
---|