]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (ina2xx) Use local regmap pointer if used more than once
authorGuenter Roeck <linux@roeck-us.net>
Thu, 1 Aug 2024 21:57:39 +0000 (14:57 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 30 Aug 2024 15:34:23 +0000 (08:34 -0700)
commitd491e781b0600487be9f85977deb5f833d15db56
tree76c7acbbb608a0433fe306c39e66cccc6af3093d
parent2bb476524c61f43e6e89aeacaee6599ce5dd3505
hwmon: (ina2xx) Use local regmap pointer if used more than once

If regmap is accessed more than once in a function, declare and used
local regmap variable.

While at it, drop low value debug messages.

Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ina2xx.c