Staging: iio: magnetometer: remove exceptional & on function name
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 12 Feb 2016 15:10:29 +0000 (20:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:44:06 +0000 (16:44 -0800)
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>
drivers/staging/iio/magnetometer/hmc5843_core.c

index 94897993793e0ebe9c221c8f7b58f075e22b1eb6..9ee9a421a8b7d10230fac87be2f1ce22fbcf6e6b 100644 (file)
@@ -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,
 };