diff options
author | Sean Nyekjaer <sean@geanix.com> | 2025-09-01 09:49:16 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-09-10 19:47:06 +0100 |
commit | 9fd569aa3d70963171846dd674c1c41ff900410f (patch) | |
tree | bf67ddb5623cff0015d2c92d8d79df8e2f340ccd /rust/helpers/vmalloc.c | |
parent | 466f7a2fef2a4e426f809f79845a1ec1aeb558f4 (diff) |
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>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions