summaryrefslogtreecommitdiff
path: root/include/linux/input
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2026-02-16 16:17:04 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-02-23 11:24:23 +0300
commit93f60f67215e09d281fb0b22d29cb33ff033db61 (patch)
tree4bb7139f18eee8c23d3343558098ea767d3462e7 /include/linux/input
parent0309e66abea141f3ec339b064b8f8b8003d2a634 (diff)
downloadlinux-93f60f67215e09d281fb0b22d29cb33ff033db61.tar.xz
iio: magnetometer: si7210: 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. This is a functional change as VDD voltage is now read once at probe rather than dynamically on each temperature measurement. However, in real deployments it is very rare for VDD to change after initial probe. 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/input')
0 files changed, 0 insertions, 0 deletions