From: jic23@kernel•org (Jonathan Cameron)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH] iio: adc: xilinx: constify iio_buffer_setup_ops structure
Date: Wed, 18 Nov 2015 19:04:21 +0000 [thread overview]
Message-ID: <564CCBB5.6000607@kernel.org> (raw)
In-Reply-To: <5648E8DA.3070509@metafoo.de>
On 15/11/15 20:19, Lars-Peter Clausen wrote:
> On 11/15/2015 09:00 PM, Julia Lawall wrote:
>> The iio_buffer_setup_ops structures are never modified, so declare this one
>> as const, like the others.
>>
>> Done with the help of Coccinelle.
>>
>> Signed-off-by: Julia Lawall <Julia.Lawall@lip6•fr>
>
> Acked-by: Lars-Peter Clausen <lars@metafoo•de>
Applied.
Thanks,
Jonathan
>
> Thanks.
>
>>
>> ---
>> drivers/iio/adc/xilinx-xadc-core.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c
>> index 0370624..c2b5f10 100644
>> --- a/drivers/iio/adc/xilinx-xadc-core.c
>> +++ b/drivers/iio/adc/xilinx-xadc-core.c
>> @@ -803,7 +803,7 @@ err:
>> return ret;
>> }
>>
>> -static struct iio_buffer_setup_ops xadc_buffer_ops = {
>> +static const struct iio_buffer_setup_ops xadc_buffer_ops = {
>> .preenable = &xadc_preenable,
>> .postenable = &iio_triggered_buffer_postenable,
>> .predisable = &iio_triggered_buffer_predisable,
>>
>
prev parent reply other threads:[~2015-11-18 19:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-15 20:00 [PATCH] iio: adc: xilinx: constify iio_buffer_setup_ops structure Julia Lawall
2015-11-15 20:19 ` Lars-Peter Clausen
2015-11-18 19:04 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=564CCBB5.6000607@kernel.org \
--to=jic23@kernel$(echo .)org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox