Skip to contentSkip to conversation

patch "iio: adc: max9611: Fix misuse of GENMASK macro" added to staging-linus

PATCH [email protected] 1 participant 1 message Jul 28, 2019

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

iio: adc: max9611: Fix misuse of GENMASK macro

to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-linus branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.

If you have any questions about this process, please let me know.

From ae8cc91a7d85e018c0c267f580820b2bb558cd48 Mon Sep 17 00:00:00 2001
From: Joe Perches <[email protected]>
Date: Tue, 9 Jul 2019 22:04:17 -0700
Subject: iio: adc: max9611: Fix misuse of GENMASK macro

Arguments are supposed to be ordered high then low.

Fixes 69780a3bbc0b ("iio: adc: Add Maxim max9611 ADC driver")
---
 drivers/iio/adc/max9611.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/max9611.c +1 -1
index 917223d5ff5b..0e3c6529fc4c 100644
@@ -83,7 +83,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
Signature · 1 line
2.22.0