| From d180371d412627a10dc31d675ef8bc777567df09 Mon Sep 17 00:00:00 2001 |
| From: Hartmut Knaack <knaack.h@gmx.de> |
| Date: Sat, 2 Aug 2014 00:07:00 +0100 |
| Subject: staging:iio:ad799x fix typo in ad799x_events[] |
| |
| From: Hartmut Knaack <knaack.h@gmx.de> |
| |
| commit d180371d412627a10dc31d675ef8bc777567df09 upstream. |
| |
| 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> |
| Signed-off-by: Jonathan Cameron <jic23@kernel.org> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| |
| --- |
| drivers/staging/iio/adc/ad799x_core.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- 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 ad799 |
| }, { |
| .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, |