瀏覽代碼

staging: iio: gyro: Remove & on function name to conform to similar IIO drivers

Remove & from function pointers to conform to the style preferred in IIO.
(Note that this is fine in staging drivers, but would create too much churn
to do outside of staging, unless otherwise working on a driver).

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>
simran singhal 8 年之前
父節點
當前提交
e7d87687cb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/iio/gyro/adis16060_core.c

+ 1 - 1
drivers/staging/iio/gyro/adis16060_core.c

@@ -117,7 +117,7 @@ out_unlock:
 }
 
 static const struct iio_info adis16060_info = {
-	.read_raw = &adis16060_read_raw,
+	.read_raw = adis16060_read_raw,
 	.driver_module = THIS_MODULE,
 };