Skip to contentSkip to conversation

staging:iio:ad799x fix typo in ad799x_events[]

PATCH In review Hartmut Knaack 2 participants 2 messages Feb 8, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging:iio:ad799x fix typo in ad799x_events[]

This patch fixes a typo in ad799x_events[], which caused the error "Failed to register event set".

---

drivers/staging/iio/adc/ad799x_core.c +1 -1
index c1b601ac..bf9081e 100644
@@ -393,7 +393,7 @@ static const struct iio_event_spec ad799x_events[] = {
 	}, {
 		.type = IIO_EV_TYPE_THRESH,
 		.dir = IIO_EV_DIR_FALLING,
-		.mask_separate = BIT(IIO_EV_INFO_VALUE),
+		.mask_separate = BIT(IIO_EV_INFO_VALUE) |
 			BIT(IIO_EV_INFO_ENABLE),
 	}, {
 		.type = IIO_EV_TYPE_THRESH,
maintainer
#1 lore raw
Quoted 3 lines · Hartmut Knaack

This patch fixes a typo in ad799x_events[], which caused the error "Failed to register event set".

Good spot! Applied to the the fixes-togreg branch and marked for stable.

Quoted 19 lines

---

drivers/staging/iio/adc/ad799x_core.c +1 -2
index c1b601ac..bf9081e 100644
@@ -393,7 +393,7 @@ static const struct iio_event_spec ad799x_events[] = {
  	}, {
  		.type = IIO_EV_TYPE_THRESH,
  		.dir = IIO_EV_DIR_FALLING,
-		.mask_separate = BIT(IIO_EV_INFO_VALUE),
+		.mask_separate = BIT(IIO_EV_INFO_VALUE) |
  			BIT(IIO_EV_INFO_ENABLE),
  	}, {
  		.type = IIO_EV_TYPE_THRESH,
--

To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html