diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2015-06-21 23:50:22 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-07-05 14:25:52 +0100 |
commit | 57f7d509c8f60e66d69ac216a03ef39c5ea1ddb8 (patch) | |
tree | d58edb655a118482dfe651fdfda1ad9696c1a73e /drivers/iio/temperature | |
parent | 4acaf96f747d0cfd6030bde362c1189d248dacff (diff) | |
download | op-kernel-dev-57f7d509c8f60e66d69ac216a03ef39c5ea1ddb8.zip op-kernel-dev-57f7d509c8f60e66d69ac216a03ef39c5ea1ddb8.tar.gz |
iio: tmp006: Use GENMASK
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/temperature')
-rw-r--r-- | drivers/iio/temperature/tmp006.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/temperature/tmp006.c b/drivers/iio/temperature/tmp006.c index fcc49f8..ecdb619 100644 --- a/drivers/iio/temperature/tmp006.c +++ b/drivers/iio/temperature/tmp006.c @@ -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 |