]> git.ipfire.org Git - people/ms/linux.git/commit
hwmon: (lm90) Move status register bit shifts to compile time
authorGuenter Roeck <linux@roeck-us.net>
Mon, 29 Nov 2021 20:17:41 +0000 (12:17 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:17 +0000 (08:38 -0700)
commitca7b9b14a022b2d255133b7bce7536ac45441f5e
treed128c8110afa01d5c4105c4ea1da05bb44d24359
parentddf2a6093c56546e17c7038ac6275ef779682de9
hwmon: (lm90) Move status register bit shifts to compile time

Handling bit shifts necessary to extract status bits during compile time
reduces code and data size by almost 5% when building for x86_64.

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