staging: iio: resolver: Remove & on function name to align with other IIO drivers.
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 11 Mar 2017 14:26:43 +0000 (19:56 +0530)
committerJonathan Cameron <jic23@kernel.org>
Mon, 13 Mar 2017 21:20:37 +0000 (21:20 +0000)
Remove & from function pointers to conform to the style found in the wider
subsystem.  Done using the following semantic patch

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

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

- &f
+ f
// </smpl>

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/resolver/ad2s1200.c
drivers/staging/iio/resolver/ad2s90.c

index 82b2d88ca942f617a7b1cd0c99b49c04dfb9839d..a37e199225f44e187687ab834bf9a8698fbbf0e1 100644 (file)
@@ -97,7 +97,7 @@ static const struct iio_chan_spec ad2s1200_channels[] = {
 };
 
 static const struct iio_info ad2s1200_info = {
-       .read_raw = &ad2s1200_read_raw,
+       .read_raw = ad2s1200_read_raw,
        .driver_module = THIS_MODULE,
 };
 
index 5b1c0db33e7f2dfe4ddbebdc48c117b01f146e5b..b2270908f26f2bb41adb5cdee7aa59aa1104a828 100644 (file)
@@ -47,7 +47,7 @@ error_ret:
 }
 
 static const struct iio_info ad2s90_info = {
-       .read_raw = &ad2s90_read_raw,
+       .read_raw = ad2s90_read_raw,
        .driver_module = THIS_MODULE,
 };