]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: imu: inv_icm42600: Use devm_regulator_get_enable() for vdd regulator
authorSean Nyekjaer <sean@geanix.com>
Mon, 1 Sep 2025 07:49:16 +0000 (09:49 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 10 Sep 2025 18:47:06 +0000 (19:47 +0100)
commit9fd569aa3d70963171846dd674c1c41ff900410f
treebf67ddb5623cff0015d2c92d8d79df8e2f340ccd
parent466f7a2fef2a4e426f809f79845a1ec1aeb558f4
iio: imu: inv_icm42600: Use devm_regulator_get_enable() for vdd regulator

The vdd regulator is not used for runtime power management, so it does
not need explicit enable/disable handling.
Use devm_regulator_get_enable() to let the regulator be managed
automatically by devm.

This simplifies the code by removing the manual enable and cleanup
logic.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250901-icm42pmreg-v3-4-ef1336246960@geanix.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_icm42600/inv_icm42600.h
drivers/iio/imu/inv_icm42600/inv_icm42600_core.c