summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJinjie Ruan <ruanjinjie@huawei.com>2023-08-26 11:54:02 +0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-09-11 20:12:40 +0100
commita2d518fbe3760f66576a5c4f627aa3f126271c8b (patch)
tree73225d651e92c43df45290b72394e49443492abd /tools/perf/scripts/python/export-to-sqlite.py
parent8cbba23e43eb182c75656c0dba40f890feea6400 (diff)
downloadlinux-a2d518fbe3760f66576a5c4f627aa3f126271c8b.tar.gz
linux-a2d518fbe3760f66576a5c4f627aa3f126271c8b.zip
iio: adc: mt6577_auxadc: Simplify with device managed function
Add a device managed hook, via devm_add_action_or_reset() and mt6577_power_off(), to power off on device detach. Replace iio_device_register() by devm_iio_device_register() and remove the mt6577_auxadc_remove() function used to unregister the device and power off the device. Remove platform_set_drvdata() from the probe function, since platform_get_drvdata() is not used anymore. Remove mt6577_auxadc_mod_reg() call from the probe function error path. Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Link: https://lore.kernel.org/r/20230826035402.3512033-3-ruanjinjie@huawei.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions