mirror of
https://github.com/torvalds/linux.git
synced 2024-12-07 19:41:31 +00:00
iio: tmp006: Use GENMASK
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
4acaf96f74
commit
57f7d509c8
@ -36,9 +36,9 @@
|
||||
#define TMP006_CONFIG_DRDY_EN BIT(8)
|
||||
#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_MANUFACTURER_MAGIC 0x5449
|
||||
|
Loading…
Reference in New Issue
Block a user