mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
iio: adc: max9611: Fix misuse of GENMASK macro
commitae8cc91a7dupstream. Arguments are supposed to be ordered high then low. Signed-off-by: Joe Perches <joe@perches.com> Fixes:69780a3bbc("iio: adc: Add Maxim max9611 ADC driver") Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3ffe1e79c1
commit
9af2233176
@@ -86,7 +86,7 @@
|
||||
#define MAX9611_TEMP_MAX_POS 0x7f80
|
||||
#define MAX9611_TEMP_MAX_NEG 0xff80
|
||||
#define MAX9611_TEMP_MIN_NEG 0xd980
|
||||
#define MAX9611_TEMP_MASK GENMASK(7, 15)
|
||||
#define MAX9611_TEMP_MASK GENMASK(15, 7)
|
||||
#define MAX9611_TEMP_SHIFT 0x07
|
||||
#define MAX9611_TEMP_RAW(_r) ((_r) >> MAX9611_TEMP_SHIFT)
|
||||
#define MAX9611_TEMP_SCALE_NUM 1000000
|
||||
|
||||
Reference in New Issue
Block a user