From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4F0F34F4.9070108@kernel.org> Date: Thu, 12 Jan 2012 19:31:00 +0000 From: Jonathan Cameron MIME-Version: 1.0 To: Manuel Stahl CC: linux-iio@vger.kernel.org, jic23@cam.ac.uk Subject: Re: [PATCH 1/3] staging: iio: core: fix argument of iio_buffer_register (must be const) References: <1326124974-7288-1-git-send-email-manuel.stahl@iis.fraunhofer.de> In-Reply-To: <1326124974-7288-1-git-send-email-manuel.stahl@iis.fraunhofer.de> Content-Type: text/plain; charset=ISO-8859-1 List-ID: Oops. One trivial point here. Perhaps the commit message could make it clear that this is for the stub? Had me briefly confused. Either way fine with me. On 01/09/2012 04:02 PM, Manuel Stahl wrote: > Signed-off-by: Manuel Stahl Acked-by: Jonathan Cameron > --- > drivers/staging/iio/buffer.h | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/iio/buffer.h b/drivers/staging/iio/buffer.h > index 44593b2..1a35006 100644 > --- a/drivers/staging/iio/buffer.h > +++ b/drivers/staging/iio/buffer.h > @@ -197,8 +197,8 @@ int iio_sw_buffer_preenable(struct iio_dev *indio_dev); > #else /* CONFIG_IIO_BUFFER */ > > static inline int iio_buffer_register(struct iio_dev *indio_dev, > - struct iio_chan_spec *channels, > - int num_channels) > + const struct iio_chan_spec *channels, > + int num_channels) > { > return 0; > }