projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4acaf96
)
iio: tmp006: Use GENMASK
author
Peter Meerwald
<pmeerw@pmeerw.net>
Sun, 21 Jun 2015 21:50:22 +0000
(23:50 +0200)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 5 Jul 2015 13:25:52 +0000
(14:25 +0100)
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/temperature/tmp006.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/temperature/tmp006.c
b/drivers/iio/temperature/tmp006.c
index fcc49f89b9464cfa8d6206602c6b1f2d518c9ecc..ecdb6191951e1a9777cb6f79f5c01afe237e8dd3 100644
(file)
--- 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