diff options
| author | Jonathan Cameron <[email protected]> | 2021-06-27 17:32:37 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-07-19 09:51:58 +0100 |
| commit | 97683c851f9cdbd3ea55697cbe2dcb6af4287bbd (patch) | |
| tree | 6cffe0c771cbed8819e37ddb2f2ab6252adc7487 /include/linux/debugobjects.h | |
| parent | 790a352b6f125e0d22edc0ae479bb2f2ef930fe3 (diff) | |
iio: dac: ad5624r: Fix incorrect handling of an optional regulator.
The naming of the regulator is problematic. VCC is usually a supply
voltage whereas these devices have a separate VREF pin.
Secondly, the regulator core might have provided a stub regulator if
a real regulator wasn't provided. That would in turn have failed to
provide a voltage when queried. So reality was that there was no way
to use the internal reference.
In order to avoid breaking any dts out in the wild, make sure to fallback
to the original vcc naming if vref is not available.
Signed-off-by: Jonathan Cameron <[email protected]>
Reported-by: kernel test robot <[email protected]>
Acked-by: Nuno Sá <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions