Re: [PATCH] iio: adc: ad799x: constify attribute_group structures

2017-03-29 Thread SIMRAN SINGHAL
On Thu, Mar 30, 2017 at 3:06 AM, Jonathan Cameron wrote: > On 29/03/17 22:28, SIMRAN SINGHAL wrote: >> On Thu, Mar 30, 2017 at 2:43 AM, Jonathan Cameron wrote: >>> On 28/03/17 21:07, simran singhal wrote: Check for attribute_group structures that are only stored in the event_attrs filed

Re: [PATCH] iio: adc: ad799x: constify attribute_group structures

2017-03-29 Thread Jonathan Cameron
On 29/03/17 22:28, SIMRAN SINGHAL wrote: > On Thu, Mar 30, 2017 at 2:43 AM, Jonathan Cameron wrote: >> On 28/03/17 21:07, simran singhal wrote: >>> Check for attribute_group structures that are only stored in the >>> event_attrs filed of iio_info structure. As the event_attrs field of >>> iio_info

Re: [PATCH] iio: adc: ad799x: constify attribute_group structures

2017-03-29 Thread SIMRAN SINGHAL
On Thu, Mar 30, 2017 at 2:43 AM, Jonathan Cameron wrote: > On 28/03/17 21:07, simran singhal wrote: >> Check for attribute_group structures that are only stored in the >> event_attrs filed of iio_info structure. As the event_attrs field of >> iio_info structures is constant, so these attribute_gro

Re: [PATCH] iio: adc: ad799x: constify attribute_group structures

2017-03-29 Thread Jonathan Cameron
On 28/03/17 21:07, simran singhal wrote: > Check for attribute_group structures that are only stored in the > event_attrs filed of iio_info structure. As the event_attrs field of > iio_info structures is constant, so these attribute_group structures can > also be declared constant. > Done using coc

[PATCH] iio: adc: ad799x: constify attribute_group structures

2017-03-28 Thread simran singhal
Check for attribute_group structures that are only stored in the event_attrs filed of iio_info structure. As the event_attrs field of iio_info structures is constant, so these attribute_group structures can also be declared constant. Done using coccinelle: @r1 disable optional_qualifier @ identifi