summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNikhil Gautam <nikhilgtr@gmail.com>2026-07-14 17:01:31 +0530
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-08-07 23:51:04 +0100
commit3b2cd82c524c75a2173f2e3f874652a75f81cd1d (patch)
tree0ed5ebd4787920b28ae40c7e61ec72f37c9f7243 /tools/perf/scripts/python
parentad367638212a9f2495ecfa59c886f0cfb7934e9c (diff)
downloadlinux-3b2cd82c524c75a2173f2e3f874652a75f81cd1d.tar.gz
linux-3b2cd82c524c75a2173f2e3f874652a75f81cd1d.zip
iio: light: opt4001: Fix power down clearing bits of the wrong register
opt4001_power_down() intends to clear the operating mode bits in the CTRL register but reads OPT4001_DEVICE_ID instead of OPT4001_CTRL, so the value written back to CTRL contains device ID bits rather than the current configuration. Fix and simplify this by using regmap_clear_bits() on the CTRL register directly in the devm action, and drop opt4001_power_down() which has no other users. Suggested-by: Jonathan Cameron <jic23@kernel.org> Fixes: 9a9608418292 ("iio: light: Add support for TI OPT4001 light sensor") Signed-off-by: Nikhil Gautam <nikhilgtr@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions