linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]staging:iio:ad799x fix typo in ad799x_events[]
@ 2014-02-08  0:07 Hartmut Knaack
  2014-02-08 10:11 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Hartmut Knaack @ 2014-02-08  0:07 UTC (permalink / raw)
  To: linux-iio

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

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
---
diff --git a/drivers/staging/iio/adc/ad799x_core.c b/drivers/staging/iio/adc/ad799x_core.c
index c1b601ac..bf9081e 100644
--- a/drivers/staging/iio/adc/ad799x_core.c
+++ b/drivers/staging/iio/adc/ad799x_core.c
@@ -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,

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH]staging:iio:ad799x fix typo in ad799x_events[]
  2014-02-08  0:07 [PATCH]staging:iio:ad799x fix typo in ad799x_events[] Hartmut Knaack
@ 2014-02-08 10:11 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2014-02-08 10:11 UTC (permalink / raw)
  To: Hartmut Knaack, linux-iio



On 08/02/14 00:07, Hartmut Knaack wrote:
> This patch fixes a typo in ad799x_events[], which caused the error "Failed to register event set".
>
> Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Good spot!  Applied to the the fixes-togreg branch and marked for stable.
> ---
> diff --git a/drivers/staging/iio/adc/ad799x_core.c b/drivers/staging/iio/adc/ad799x_core.c
> index c1b601ac..bf9081e 100644
> --- a/drivers/staging/iio/adc/ad799x_core.c
> +++ b/drivers/staging/iio/adc/ad799x_core.c
> @@ -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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-08 10:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-08  0:07 [PATCH]staging:iio:ad799x fix typo in ad799x_events[] Hartmut Knaack
2014-02-08 10:11 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).