Staging: iio: Remove exceptional & on function name
authorShraddha Barke <shraddha.6596@gmail.com>
Tue, 13 Oct 2015 15:37:48 +0000 (21:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 17:11:03 +0000 (10:11 -0700)
In this file, function names are otherwise used as pointers without &.

A simplified version of the Coccinelle semantic patch that makes this
change is as follows:

// <smpl>
@r@
identifier f;
@@

f(...) { ... }
@@
identifier r.f;
@@

- &f
+ f
// </smpl>

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7280a.c
drivers/staging/iio/addac/adt7316.c
drivers/staging/iio/resolver/ad2s1210.c

index d98e229c46bfd4047e2799457e62aa1528acec4e..edbfba1c503c55b1c797249c7e671f293f4de142 100644 (file)
@@ -817,7 +817,7 @@ static int ad7280_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info ad7280_info = {
-       .read_raw = &ad7280_read_raw,
+       .read_raw = ad7280_read_raw,
        .event_attrs = &ad7280_event_attrs_group,
        .attrs = &ad7280_attrs_group,
        .driver_module = THIS_MODULE,
index a1dd74525c10f7dea44593730f549216340702a1..3adc4516918c930bce2c4c48ea078eb82fa9345c 100644 (file)
@@ -2152,7 +2152,7 @@ int adt7316_probe(struct device *dev, struct adt7316_bus *bus,
 
                ret = devm_request_threaded_irq(dev, chip->bus.irq,
                                                NULL,
-                                               &adt7316_event_handler,
+                                               adt7316_event_handler,
                                                chip->bus.irq_flags |
                                                IRQF_ONESHOT,
                                                indio_dev->name,
index 7bc3e4a73834d5e305b47d93f83e8d2e96e95f4f..3bd65f5c9cf5a5d9f7109e70e752423ceccc76f5 100644 (file)
@@ -633,7 +633,7 @@ error_ret:
 }
 
 static const struct iio_info ad2s1210_info = {
-       .read_raw = &ad2s1210_read_raw,
+       .read_raw = ad2s1210_read_raw,
        .attrs = &ad2s1210_attribute_group,
        .driver_module = THIS_MODULE,
 };