Commit 57f7d509 authored by Peter Meerwald's avatar Peter Meerwald Committed by Jonathan Cameron

iio: tmp006: Use GENMASK

Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 4acaf96f
...@@ -36,9 +36,9 @@ ...@@ -36,9 +36,9 @@
#define TMP006_CONFIG_DRDY_EN BIT(8) #define TMP006_CONFIG_DRDY_EN BIT(8)
#define TMP006_CONFIG_DRDY BIT(7) #define TMP006_CONFIG_DRDY BIT(7)
#define TMP006_CONFIG_MOD_MASK 0x7000 #define TMP006_CONFIG_MOD_MASK GENMASK(14, 12)
#define TMP006_CONFIG_CR_MASK 0x0e00 #define TMP006_CONFIG_CR_MASK GENMASK(11, 9)
#define TMP006_CONFIG_CR_SHIFT 9 #define TMP006_CONFIG_CR_SHIFT 9
#define TMP006_MANUFACTURER_MAGIC 0x5449 #define TMP006_MANUFACTURER_MAGIC 0x5449
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment