summaryrefslogtreecommitdiff
path: root/include/linux/init_task.h
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2026-02-16 16:17:05 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-02-23 11:24:24 +0300
commit65d887ff21057dede1684c176e910991700a8bd0 (patch)
tree493ad6712c03bd8b2da6ffe2ef42043438b075a4 /include/linux/init_task.h
parent93f60f67215e09d281fb0b22d29cb33ff033db61 (diff)
downloadlinux-65d887ff21057dede1684c176e910991700a8bd0.tar.xz
iio: dac: max5522: simplify probe with devm_regulator_get_enable_read_voltage()
Simplify probe by using devm_regulator_get_enable_read_voltage() to get, enable and read the regulator voltage in a single call, caching the value at probe time. The reference voltage for this DAC is a fixed hardware configuration that is not expected to change at runtime, so reading it once during probe and caching the millivolt value is sufficient. Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/init_task.h')
0 files changed, 0 insertions, 0 deletions