summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/magnetometer
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2016-02-12 15:10:29 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-15 00:44:06 (GMT)
commit343af6379e950266ee3d4f638a3ffe0b01b08eab (patch)
tree4790d1c8bd3cd667bb3fb07f476bd30700fdcfc5 /drivers/staging/iio/magnetometer
parentdf271034692dfa26010f27795fe955c866320b51 (diff)
downloadlinux-343af6379e950266ee3d4f638a3ffe0b01b08eab.tar.xz
Staging: iio: magnetometer: remove exceptional & on function name
In this file,function names are otherwise used as pointers without &. Found using coccinelle. // <smpl> @r@ identifier f; @@ f(...) { ... } @@ identifier r.f; @@ - &f + f // </smpl> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/magnetometer')
-rw-r--r--drivers/staging/iio/magnetometer/hmc5843_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/iio/magnetometer/hmc5843_core.c b/drivers/staging/iio/magnetometer/hmc5843_core.c
index 9489799..9ee9a42 100644
--- a/drivers/staging/iio/magnetometer/hmc5843_core.c
+++ b/drivers/staging/iio/magnetometer/hmc5843_core.c
@@ -554,9 +554,9 @@ static int hmc5843_init(struct hmc5843_data *data)
static const struct iio_info hmc5843_info = {
.attrs = &hmc5843_group,
- .read_raw = &hmc5843_read_raw,
- .write_raw = &hmc5843_write_raw,
- .write_raw_get_fmt = &hmc5843_write_raw_get_fmt,
+ .read_raw = hmc5843_read_raw,
+ .write_raw = hmc5843_write_raw,
+ .write_raw_get_fmt = hmc5843_write_raw_get_fmt,
.driver_module = THIS_MODULE,
};