18 Sep, 2016
1 commit
-
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 disable optional_qualifier@
identifier i;
position p;
@@
static struct iio_info i@p = { ... };@ok@
identifier r.i;
struct iio_dev e;
position p;
@@
e.info = &i@p;@bad@
position p != {r.p,ok.p};
identifier r.i;
struct iio_info e;
@@
e@i@p@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct iio_info i = { ... };
//The result of size on this file before the change is:
text data bss dec hex filename
1529 312 0 1841 731
drivers/iio/adc/men_z188_adc.oand after the change it is:
text data bss dec hex filename
1689 168 0 1857 741
drivers/iio/adc/men_z188_adc.oSigned-off-by: Julia Lawall
Signed-off-by: Jonathan Cameron
16 Nov, 2014
1 commit
-
The mcb_device_id table is supposed to be zero-terminated.
Signed-off-by: Axel Lin
Cc:
Signed-off-by: Jonathan Cameron
14 Jun, 2014
1 commit
-
mcb_request_mem() returns an ERR_PTR(), it doesn't return NULL.
Fixes: 74aeac4da66f ('iio: adc: Add MEN 16z188 ADC driver')
Signed-off-by: Dan Carpenter
Signed-off-by: Jonathan Cameron
Cc: Stable@vger.kernel.org
09 Mar, 2014
1 commit
-
men_z188_adc needs to include linux/io.h. This fixes a build error
discovered by 0-day buid botSigned-off-by: Johannes Thumshirn
Reported-by: kbuild test robot
Signed-off-by: Greg Kroah-Hartman
01 Mar, 2014
1 commit
-
Add support for MEN 16z188 ADC IP Core on MCB FPGAs.
Signed-off-by: Johannes Thumshirn
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman