Staging:iio:Remove exceptional & on function name
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 5 Feb 2016 03:53:32 +0000 (09:23 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sat, 6 Feb 2016 18:07:04 +0000 (18:07 +0000)
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: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/impedance-analyzer/ad5933.c

index 10c43dda0f5a37009d6ba65bda523e2883fb8e17..d1218d89672510990ef92ca85eadaddb2632c52b 100644 (file)
@@ -558,7 +558,7 @@ out:
 }
 
 static const struct iio_info ad5933_info = {
-       .read_raw = &ad5933_read_raw,
+       .read_raw = ad5933_read_raw,
        .attrs = &ad5933_attribute_group,
        .driver_module = THIS_MODULE,
 };
@@ -616,9 +616,9 @@ static int ad5933_ring_postdisable(struct iio_dev *indio_dev)
 }
 
 static const struct iio_buffer_setup_ops ad5933_ring_setup_ops = {
-       .preenable = &ad5933_ring_preenable,
-       .postenable = &ad5933_ring_postenable,
-       .postdisable = &ad5933_ring_postdisable,
+       .preenable = ad5933_ring_preenable,
+       .postenable = ad5933_ring_postenable,
+       .postdisable = ad5933_ring_postdisable,
 };
 
 static int ad5933_register_ring_funcs_and_init(struct iio_dev *indio_dev)