Re: [PATCH 1/3] iio: common: ssp_sensors: accel: constify iio_info structures

2016-09-18 Thread Jonathan Cameron
On 16/09/16 11:55, Julia Lawall wrote: > Check for iio_info structures that are only stored in the info field of a > iio_dev structure. This field is declared const, so iio_info structures > that have this property can be declared as const also. > > The semantic patch that makes this change is

Re: [PATCH 1/3] iio: common: ssp_sensors: accel: constify iio_info structures

2016-09-18 Thread Jonathan Cameron
On 16/09/16 11:55, Julia Lawall wrote: > Check for iio_info structures that are only stored in the info field of a > iio_dev structure. This field is declared const, so iio_info structures > that have this property can be declared as const also. > > The semantic patch that makes this change is

[PATCH 1/3] iio: common: ssp_sensors: accel: constify iio_info structures

2016-09-16 Thread Julia Lawall
Check for iio_info structures that are only stored in the info field of a iio_dev structure. This field is declared const, so iio_info structures that have this property can be declared as const also. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r

[PATCH 1/3] iio: common: ssp_sensors: accel: constify iio_info structures

2016-09-16 Thread Julia Lawall
Check for iio_info structures that are only stored in the info field of a iio_dev structure. This field is declared const, so iio_info structures that have this property can be declared as const also. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r