Re: [PATCH] iio: iio_device_add_event_sysfs() bugfix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/18/13 10:21, Lukasz Czerwinski wrote:
> Fix mask generation for modified channels.
> 
> Signed-off-by: Lukasz Czerwinski <l.czerwinski@xxxxxxxxxxx>
Applied to the fixes-togreg branch of iio.git.

Thanks for doing this!

Jonathan
> ---
>  drivers/iio/industrialio-event.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c
> index 10aa9ef..f146acd 100644
> --- a/drivers/iio/industrialio-event.c
> +++ b/drivers/iio/industrialio-event.c
> @@ -276,7 +276,7 @@ static int iio_device_add_event_sysfs(struct iio_dev *indio_dev,
>  			goto error_ret;
>  		}
>  		if (chan->modified)
> -			mask = IIO_MOD_EVENT_CODE(chan->type, 0, chan->channel,
> +			mask = IIO_MOD_EVENT_CODE(chan->type, 0, chan->channel2,
>  						  i/IIO_EV_DIR_MAX,
>  						  i%IIO_EV_DIR_MAX);
>  		else if (chan->differential)
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux