]> git.baikalelectronics.ru Git - kernel.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)
commit6a0c07ec1edb3d6a8c2954ef111b32d9c9d0d985
treed128c8110afa01d5c4105c4ea1da05bb44d24359
parentbd4dff268c9d9ae3974ceb5a1953fd11ef3f2e4f
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