]> git.ipfire.org Git - thirdparty/linux.git/commit
hwmon: (ina2xx) Use scoped_guard() to acquire the subsystem lock
authorGuenter Roeck <linux@roeck-us.net>
Wed, 13 May 2026 14:17:03 +0000 (07:17 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:23:00 +0000 (08:23 -0700)
commitbfca8aba91dbfac0cbf84c04dc899b482c4e0b0d
tree6e74137c279e5b510e8538754ef5771b4ee563f1
parentbf3bd1f587f5a56ce60173324db27e5e50aa56b0
hwmon: (ina2xx) Use scoped_guard() to acquire the subsystem lock

Use scoped_guard() instead of hwmon_lock() / hwmon_unlock() to acquire
and release the hardware monitoring subsystem lock.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ina2xx.c