Commit 3a1d9489 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: iio: Remove exceptional & on function name

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: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 30cc9bd6
...@@ -817,7 +817,7 @@ static int ad7280_read_raw(struct iio_dev *indio_dev, ...@@ -817,7 +817,7 @@ static int ad7280_read_raw(struct iio_dev *indio_dev,
} }
static const struct iio_info ad7280_info = { static const struct iio_info ad7280_info = {
.read_raw = &ad7280_read_raw, .read_raw = ad7280_read_raw,
.event_attrs = &ad7280_event_attrs_group, .event_attrs = &ad7280_event_attrs_group,
.attrs = &ad7280_attrs_group, .attrs = &ad7280_attrs_group,
.driver_module = THIS_MODULE, .driver_module = THIS_MODULE,
......
...@@ -2152,7 +2152,7 @@ int adt7316_probe(struct device *dev, struct adt7316_bus *bus, ...@@ -2152,7 +2152,7 @@ int adt7316_probe(struct device *dev, struct adt7316_bus *bus,
ret = devm_request_threaded_irq(dev, chip->bus.irq, ret = devm_request_threaded_irq(dev, chip->bus.irq,
NULL, NULL,
&adt7316_event_handler, adt7316_event_handler,
chip->bus.irq_flags | chip->bus.irq_flags |
IRQF_ONESHOT, IRQF_ONESHOT,
indio_dev->name, indio_dev->name,
......
...@@ -633,7 +633,7 @@ static int ad2s1210_initial(struct ad2s1210_state *st) ...@@ -633,7 +633,7 @@ static int ad2s1210_initial(struct ad2s1210_state *st)
} }
static const struct iio_info ad2s1210_info = { static const struct iio_info ad2s1210_info = {
.read_raw = &ad2s1210_read_raw, .read_raw = ad2s1210_read_raw,
.attrs = &ad2s1210_attribute_group, .attrs = &ad2s1210_attribute_group,
.driver_module = THIS_MODULE, .driver_module = THIS_MODULE,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment