diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-08-18 02:17:24 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-08-19 19:08:17 +0300 |
commit | 2c052d4280ca48fddc7a9ffd2329ada3628cab86 (patch) | |
tree | 7e2e20a28d8c5113e6fb64af40e805097997f109 /drivers/hwmon/pmbus/lm25066.c | |
parent | 228b687d9e20f367e4d5ea8723e3abbf0892db61 (diff) | |
download | linux-2c052d4280ca48fddc7a9ffd2329ada3628cab86.tar.xz |
hwmon: (pmbus) Use BIT macro
Using the BIT macro makes the code a little easier to read.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/lm25066.c')
-rw-r--r-- | drivers/hwmon/pmbus/lm25066.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hwmon/pmbus/lm25066.c b/drivers/hwmon/pmbus/lm25066.c index a26b1d1d9514..a3d912cd3b8d 100644 --- a/drivers/hwmon/pmbus/lm25066.c +++ b/drivers/hwmon/pmbus/lm25066.c @@ -19,6 +19,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/bitops.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> @@ -42,15 +43,15 @@ enum chips { lm25056, lm25063, lm25066, lm5064, lm5066 }; #define LM25066_READ_AVG_IIN 0xde #define LM25066_READ_AVG_PIN 0xdf -#define LM25066_DEV_SETUP_CL (1 << 4) /* Current limit */ +#define LM25066_DEV_SETUP_CL BIT(4) /* Current limit */ /* LM25056 only */ #define LM25056_VAUX_OV_WARN_LIMIT 0xe3 #define LM25056_VAUX_UV_WARN_LIMIT 0xe4 -#define LM25056_MFR_STS_VAUX_OV_WARN (1 << 1) -#define LM25056_MFR_STS_VAUX_UV_WARN (1 << 0) +#define LM25056_MFR_STS_VAUX_OV_WARN BIT(1) +#define LM25056_MFR_STS_VAUX_UV_WARN BIT(0) /* LM25063 only */ |