staging: iio: ad7192: Remove exceptional & on function name
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 11 Mar 2017 14:26:35 +0000 (19:56 +0530)
committerJonathan Cameron <jic23@kernel.org>
Mon, 13 Mar 2017 21:20:30 +0000 (21:20 +0000)
Remove & from function pointers to conform to the style found elsewhere
in the file.  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/adc/ad7192.c

index 4fc8588f0392e5263b2fb1f0c4151f3d98d8bf75..d11c6de9c777f979a2a59b05cd82fc8ed0c54e0b 100644 (file)
@@ -564,18 +564,18 @@ static int ad7192_write_raw_get_fmt(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info ad7192_info = {
-       .read_raw = &ad7192_read_raw,
-       .write_raw = &ad7192_write_raw,
-       .write_raw_get_fmt = &ad7192_write_raw_get_fmt,
+       .read_raw = ad7192_read_raw,
+       .write_raw = ad7192_write_raw,
+       .write_raw_get_fmt = ad7192_write_raw_get_fmt,
        .attrs = &ad7192_attribute_group,
        .validate_trigger = ad_sd_validate_trigger,
        .driver_module = THIS_MODULE,
 };
 
 static const struct iio_info ad7195_info = {
-       .read_raw = &ad7192_read_raw,
-       .write_raw = &ad7192_write_raw,
-       .write_raw_get_fmt = &ad7192_write_raw_get_fmt,
+       .read_raw = ad7192_read_raw,
+       .write_raw = ad7192_write_raw,
+       .write_raw_get_fmt = ad7192_write_raw_get_fmt,
        .attrs = &ad7195_attribute_group,
        .validate_trigger = ad_sd_validate_trigger,
        .driver_module = THIS_MODULE,