]> www.infradead.org Git - users/dwmw2/linux.git/commit
hwmon: (ina2xx) Use bit operations
authorGuenter Roeck <linux@roeck-us.net>
Tue, 23 Jul 2024 20:25:31 +0000 (13:25 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 30 Aug 2024 15:34:23 +0000 (08:34 -0700)
commit232177a37b90d76d3616f28fb47636d81c02fe8b
tree0736f7134823e4410881029c617ae2fd79b0af86
parent61a4a8414e1c6331a5a2fcfd235e6252c985f9d7
hwmon: (ina2xx) Use bit operations

Use bit operations where possible to make the code more generic and to
align it with other drivers. Also use compile time conversion from bit
to mask to reduce runtime overhead.

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