Re: [PATCH] iio:buffer_cb: Constify iio_cb_access

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

 



On 09/15/13 17:09, Lars-Peter Clausen wrote:
> The iio_cb_access struct is never modified so we can mark it as const.
> 
> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
Good point.

Applied to the togreg branch of iio.git

Thanks,

Jonathan
> ---
>  drivers/iio/buffer_cb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/buffer_cb.c b/drivers/iio/buffer_cb.c
> index 9d19ba7..f406889 100644
> --- a/drivers/iio/buffer_cb.c
> +++ b/drivers/iio/buffer_cb.c
> @@ -21,7 +21,7 @@ static int iio_buffer_cb_store_to(struct iio_buffer *buffer, u8 *data)
>  	return cb_buff->cb(data, cb_buff->private);
>  }
>  
> -static struct iio_buffer_access_funcs iio_cb_access = {
> +static const struct iio_buffer_access_funcs iio_cb_access = {
>  	.store_to = &iio_buffer_cb_store_to,
>  };
>  
> 
--
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