linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name
@ 2017-03-11 14:26 simran singhal
  2017-03-11 14:26 ` [PATCH v1 01/10] staging: iio: ad7192: Remove exceptional & on function name simran singhal
                   ` (10 more replies)
  0 siblings, 11 replies; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

This patch-series removes exceptional & on functions name.

v1:
  -Change the commit message of all the patches of the patch-series

simran singhal (10):
  staging: iio: ad7192: Remove exceptional & on function name
  staging: iio: ad7780: Remove exceptional & on function name
  staging: iio: cdc: ad7746: Remove exceptional & on function name
  staging: iio: cdc: ad7152: Remove exceptional & on function name
  staging: iio: adis16240: Remove exceptional & on function name
  staging: iio: adis16201: Remove exceptional & on function name
  staging: iio: adis16209: Remove exceptional & on function name
  staging: iio: adis16203: Remove exceptional & on function name
  staging: iio: resolver: Remove exceptional & on function name
  staging: iio: gyro: Remove exceptional & on function name

 drivers/staging/iio/accel/adis16201.c     |  4 ++--
 drivers/staging/iio/accel/adis16203.c     |  4 ++--
 drivers/staging/iio/accel/adis16209.c     |  4 ++--
 drivers/staging/iio/accel/adis16240.c     |  4 ++--
 drivers/staging/iio/adc/ad7192.c          | 12 ++++++------
 drivers/staging/iio/adc/ad7780.c          |  2 +-
 drivers/staging/iio/cdc/ad7152.c          |  6 +++---
 drivers/staging/iio/cdc/ad7746.c          |  4 ++--
 drivers/staging/iio/gyro/adis16060_core.c |  2 +-
 drivers/staging/iio/resolver/ad2s1200.c   |  2 +-
 drivers/staging/iio/resolver/ad2s90.c     |  2 +-
 11 files changed, 23 insertions(+), 23 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [PATCH v1 01/10] staging: iio: ad7192: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:36   ` Jonathan Cameron
  2017-03-11 14:26 ` [PATCH v1 02/10] staging: iio: ad7780: " simran singhal
                   ` (9 subsequent siblings)
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/adc/ad7192.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c
index 4fc8588..d11c6de 100644
--- a/drivers/staging/iio/adc/ad7192.c
+++ b/drivers/staging/iio/adc/ad7192.c
@@ -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,
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v1 02/10] staging: iio: ad7780: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
  2017-03-11 14:26 ` [PATCH v1 01/10] staging: iio: ad7192: Remove exceptional & on function name simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:37   ` Jonathan Cameron
  2017-03-11 14:26 ` [PATCH v1 03/10] staging: iio: cdc: ad7746: " simran singhal
                   ` (8 subsequent siblings)
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/adc/ad7780.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/iio/adc/ad7780.c b/drivers/staging/iio/adc/ad7780.c
index e149600..dec3ba6 100644
--- a/drivers/staging/iio/adc/ad7780.c
+++ b/drivers/staging/iio/adc/ad7780.c
@@ -154,7 +154,7 @@ static const struct ad7780_chip_info ad7780_chip_info_tbl[] = {
 };
 
 static const struct iio_info ad7780_info = {
-	.read_raw = &ad7780_read_raw,
+	.read_raw = ad7780_read_raw,
 	.driver_module = THIS_MODULE,
 };
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v1 03/10] staging: iio: cdc: ad7746: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
  2017-03-11 14:26 ` [PATCH v1 01/10] staging: iio: ad7192: Remove exceptional & on function name simran singhal
  2017-03-11 14:26 ` [PATCH v1 02/10] staging: iio: ad7780: " simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:39   ` Jonathan Cameron
  2017-03-11 14:26 ` [PATCH v1 04/10] staging: iio: cdc: ad7152: " simran singhal
                   ` (7 subsequent siblings)
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/cdc/ad7746.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c
index 81f8b9e..6294de7 100644
--- a/drivers/staging/iio/cdc/ad7746.c
+++ b/drivers/staging/iio/cdc/ad7746.c
@@ -664,8 +664,8 @@ static int ad7746_read_raw(struct iio_dev *indio_dev,
 
 static const struct iio_info ad7746_info = {
 	.attrs = &ad7746_attribute_group,
-	.read_raw = &ad7746_read_raw,
-	.write_raw = &ad7746_write_raw,
+	.read_raw = ad7746_read_raw,
+	.write_raw = ad7746_write_raw,
 	.driver_module = THIS_MODULE,
 };
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v1 04/10] staging: iio: cdc: ad7152: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
                   ` (2 preceding siblings ...)
  2017-03-11 14:26 ` [PATCH v1 03/10] staging: iio: cdc: ad7746: " simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:40   ` Jonathan Cameron
  2017-03-11 14:26 ` [PATCH v1 05/10] staging: iio: adis16240: " simran singhal
                   ` (6 subsequent siblings)
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/cdc/ad7152.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/iio/cdc/ad7152.c b/drivers/staging/iio/cdc/ad7152.c
index e8609b8..59ef93c 100644
--- a/drivers/staging/iio/cdc/ad7152.c
+++ b/drivers/staging/iio/cdc/ad7152.c
@@ -441,9 +441,9 @@ static int ad7152_write_raw_get_fmt(struct iio_dev *indio_dev,
 
 static const struct iio_info ad7152_info = {
 	.attrs = &ad7152_attribute_group,
-	.read_raw = &ad7152_read_raw,
-	.write_raw = &ad7152_write_raw,
-	.write_raw_get_fmt = &ad7152_write_raw_get_fmt,
+	.read_raw = ad7152_read_raw,
+	.write_raw = ad7152_write_raw,
+	.write_raw_get_fmt = ad7152_write_raw_get_fmt,
 	.driver_module = THIS_MODULE,
 };
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v1 05/10] staging: iio: adis16240: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
                   ` (3 preceding siblings ...)
  2017-03-11 14:26 ` [PATCH v1 04/10] staging: iio: cdc: ad7152: " simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:40   ` Jonathan Cameron
  2017-03-11 14:26 ` [PATCH v1 06/10] staging: iio: adis16201: " simran singhal
                   ` (5 subsequent siblings)
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/accel/adis16240.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/iio/accel/adis16240.c b/drivers/staging/iio/accel/adis16240.c
index 27d7f6a..37a29dc 100644
--- a/drivers/staging/iio/accel/adis16240.c
+++ b/drivers/staging/iio/accel/adis16240.c
@@ -373,8 +373,8 @@ static const struct attribute_group adis16240_attribute_group = {
 
 static const struct iio_info adis16240_info = {
 	.attrs = &adis16240_attribute_group,
-	.read_raw = &adis16240_read_raw,
-	.write_raw = &adis16240_write_raw,
+	.read_raw = adis16240_read_raw,
+	.write_raw = adis16240_write_raw,
 	.update_scan_mode = adis_update_scan_mode,
 	.driver_module = THIS_MODULE,
 };
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v1 06/10] staging: iio: adis16201: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
                   ` (4 preceding siblings ...)
  2017-03-11 14:26 ` [PATCH v1 05/10] staging: iio: adis16240: " simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:41   ` Jonathan Cameron
  2017-03-11 14:26 ` [PATCH v1 07/10] staging: iio: adis16209: " simran singhal
                   ` (4 subsequent siblings)
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/accel/adis16201.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/iio/accel/adis16201.c b/drivers/staging/iio/accel/adis16201.c
index d6c8658..7565268 100644
--- a/drivers/staging/iio/accel/adis16201.c
+++ b/drivers/staging/iio/accel/adis16201.c
@@ -285,8 +285,8 @@ static const struct iio_chan_spec adis16201_channels[] = {
 };
 
 static const struct iio_info adis16201_info = {
-	.read_raw = &adis16201_read_raw,
-	.write_raw = &adis16201_write_raw,
+	.read_raw = adis16201_read_raw,
+	.write_raw = adis16201_write_raw,
 	.update_scan_mode = adis_update_scan_mode,
 	.driver_module = THIS_MODULE,
 };
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v1 07/10] staging: iio: adis16209: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
                   ` (5 preceding siblings ...)
  2017-03-11 14:26 ` [PATCH v1 06/10] staging: iio: adis16201: " simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:41   ` Jonathan Cameron
  2017-03-11 14:26 ` [PATCH v1 08/10] staging: iio: adis16203: " simran singhal
                   ` (3 subsequent siblings)
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/accel/adis16209.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c
index 8ff537f..56bc2ac 100644
--- a/drivers/staging/iio/accel/adis16209.c
+++ b/drivers/staging/iio/accel/adis16209.c
@@ -285,8 +285,8 @@ static const struct iio_chan_spec adis16209_channels[] = {
 };
 
 static const struct iio_info adis16209_info = {
-	.read_raw = &adis16209_read_raw,
-	.write_raw = &adis16209_write_raw,
+	.read_raw = adis16209_read_raw,
+	.write_raw = adis16209_write_raw,
 	.update_scan_mode = adis_update_scan_mode,
 	.driver_module = THIS_MODULE,
 };
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v1 08/10] staging: iio: adis16203: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
                   ` (6 preceding siblings ...)
  2017-03-11 14:26 ` [PATCH v1 07/10] staging: iio: adis16209: " simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:41   ` Jonathan Cameron
  2017-03-11 14:26 ` [PATCH v1 09/10] staging: iio: resolver: " simran singhal
                   ` (2 subsequent siblings)
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/accel/adis16203.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c
index 68189ad..b59755a 100644
--- a/drivers/staging/iio/accel/adis16203.c
+++ b/drivers/staging/iio/accel/adis16203.c
@@ -233,8 +233,8 @@ static const struct iio_chan_spec adis16203_channels[] = {
 };
 
 static const struct iio_info adis16203_info = {
-	.read_raw = &adis16203_read_raw,
-	.write_raw = &adis16203_write_raw,
+	.read_raw = adis16203_read_raw,
+	.write_raw = adis16203_write_raw,
 	.update_scan_mode = adis_update_scan_mode,
 	.driver_module = THIS_MODULE,
 };
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v1 09/10] staging: iio: resolver: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
                   ` (7 preceding siblings ...)
  2017-03-11 14:26 ` [PATCH v1 08/10] staging: iio: adis16203: " simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:45   ` Jonathan Cameron
  2017-03-11 14:26 ` [PATCH v1 10/10] staging: iio: gyro: " simran singhal
  2017-03-11 18:35 ` [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name Jonathan Cameron
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/resolver/ad2s1200.c | 2 +-
 drivers/staging/iio/resolver/ad2s90.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c
index 82b2d88..a37e199 100644
--- a/drivers/staging/iio/resolver/ad2s1200.c
+++ b/drivers/staging/iio/resolver/ad2s1200.c
@@ -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,
 };
 
diff --git a/drivers/staging/iio/resolver/ad2s90.c b/drivers/staging/iio/resolver/ad2s90.c
index 5b1c0db..b227090 100644
--- a/drivers/staging/iio/resolver/ad2s90.c
+++ b/drivers/staging/iio/resolver/ad2s90.c
@@ -47,7 +47,7 @@ static int ad2s90_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info ad2s90_info = {
-	.read_raw = &ad2s90_read_raw,
+	.read_raw = ad2s90_read_raw,
 	.driver_module = THIS_MODULE,
 };
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v1 10/10] staging: iio: gyro: Remove exceptional & on function name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
                   ` (8 preceding siblings ...)
  2017-03-11 14:26 ` [PATCH v1 09/10] staging: iio: resolver: " simran singhal
@ 2017-03-11 14:26 ` simran singhal
  2017-03-11 18:48   ` Jonathan Cameron
  2017-03-11 18:35 ` [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name Jonathan Cameron
  10 siblings, 1 reply; 23+ messages in thread
From: simran singhal @ 2017-03-11 14:26 UTC (permalink / raw)
  To: lars
  Cc: Michael.Hennerich, jic23, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

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>
---
 drivers/staging/iio/gyro/adis16060_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/iio/gyro/adis16060_core.c b/drivers/staging/iio/gyro/adis16060_core.c
index ab816a2..c9d46e7 100644
--- a/drivers/staging/iio/gyro/adis16060_core.c
+++ b/drivers/staging/iio/gyro/adis16060_core.c
@@ -117,7 +117,7 @@ static int adis16060_read_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info adis16060_info = {
-	.read_raw = &adis16060_read_raw,
+	.read_raw = adis16060_read_raw,
 	.driver_module = THIS_MODULE,
 };
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name
  2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
                   ` (9 preceding siblings ...)
  2017-03-11 14:26 ` [PATCH v1 10/10] staging: iio: gyro: " simran singhal
@ 2017-03-11 18:35 ` Jonathan Cameron
  10 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:35 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> This patch-series removes exceptional & on functions name.
> 
> v1:
>   -Change the commit message of all the patches of the patch-series
Usual convention is to call the first (unlabelled) revision v1
implicitly which would have made this V2.  Doesn't really matter
though!

Jonathan
> 
> simran singhal (10):
>   staging: iio: ad7192: Remove exceptional & on function name
>   staging: iio: ad7780: Remove exceptional & on function name
>   staging: iio: cdc: ad7746: Remove exceptional & on function name
>   staging: iio: cdc: ad7152: Remove exceptional & on function name
>   staging: iio: adis16240: Remove exceptional & on function name
>   staging: iio: adis16201: Remove exceptional & on function name
>   staging: iio: adis16209: Remove exceptional & on function name
>   staging: iio: adis16203: Remove exceptional & on function name
>   staging: iio: resolver: Remove exceptional & on function name
>   staging: iio: gyro: Remove exceptional & on function name
> 
>  drivers/staging/iio/accel/adis16201.c     |  4 ++--
>  drivers/staging/iio/accel/adis16203.c     |  4 ++--
>  drivers/staging/iio/accel/adis16209.c     |  4 ++--
>  drivers/staging/iio/accel/adis16240.c     |  4 ++--
>  drivers/staging/iio/adc/ad7192.c          | 12 ++++++------
>  drivers/staging/iio/adc/ad7780.c          |  2 +-
>  drivers/staging/iio/cdc/ad7152.c          |  6 +++---
>  drivers/staging/iio/cdc/ad7746.c          |  4 ++--
>  drivers/staging/iio/gyro/adis16060_core.c |  2 +-
>  drivers/staging/iio/resolver/ad2s1200.c   |  2 +-
>  drivers/staging/iio/resolver/ad2s90.c     |  2 +-
>  11 files changed, 23 insertions(+), 23 deletions(-)
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 01/10] staging: iio: ad7192: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 01/10] staging: iio: ad7192: Remove exceptional & on function name simran singhal
@ 2017-03-11 18:36   ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:36 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Applied to the togreg branch of iio.git and pushed out as
testing for the autobuilders to play with it.

Thanks,

Jonathan
> ---
>  drivers/staging/iio/adc/ad7192.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c
> index 4fc8588..d11c6de 100644
> --- a/drivers/staging/iio/adc/ad7192.c
> +++ b/drivers/staging/iio/adc/ad7192.c
> @@ -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,
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 02/10] staging: iio: ad7780: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 02/10] staging: iio: ad7780: " simran singhal
@ 2017-03-11 18:37   ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:37 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Applied.

Thanks,
> ---
>  drivers/staging/iio/adc/ad7780.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/adc/ad7780.c b/drivers/staging/iio/adc/ad7780.c
> index e149600..dec3ba6 100644
> --- a/drivers/staging/iio/adc/ad7780.c
> +++ b/drivers/staging/iio/adc/ad7780.c
> @@ -154,7 +154,7 @@ static const struct ad7780_chip_info ad7780_chip_info_tbl[] = {
>  };
>  
>  static const struct iio_info ad7780_info = {
> -	.read_raw = &ad7780_read_raw,
> +	.read_raw = ad7780_read_raw,
>  	.driver_module = THIS_MODULE,
>  };
>  
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 03/10] staging: iio: cdc: ad7746: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 03/10] staging: iio: cdc: ad7746: " simran singhal
@ 2017-03-11 18:39   ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:39 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Applied.

It's a little unobvious that other function pointers in this
one don't have the & as they are only used via macros.

However, I'm in general in favour of the change so don't
really care that much!

Jonathan
> ---
>  drivers/staging/iio/cdc/ad7746.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c
> index 81f8b9e..6294de7 100644
> --- a/drivers/staging/iio/cdc/ad7746.c
> +++ b/drivers/staging/iio/cdc/ad7746.c
> @@ -664,8 +664,8 @@ static int ad7746_read_raw(struct iio_dev *indio_dev,
>  
>  static const struct iio_info ad7746_info = {
>  	.attrs = &ad7746_attribute_group,
> -	.read_raw = &ad7746_read_raw,
> -	.write_raw = &ad7746_write_raw,
> +	.read_raw = ad7746_read_raw,
> +	.write_raw = ad7746_write_raw,
>  	.driver_module = THIS_MODULE,
>  };
>  
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 04/10] staging: iio: cdc: ad7152: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 04/10] staging: iio: cdc: ad7152: " simran singhal
@ 2017-03-11 18:40   ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:40 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Applied.
> ---
>  drivers/staging/iio/cdc/ad7152.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/iio/cdc/ad7152.c b/drivers/staging/iio/cdc/ad7152.c
> index e8609b8..59ef93c 100644
> --- a/drivers/staging/iio/cdc/ad7152.c
> +++ b/drivers/staging/iio/cdc/ad7152.c
> @@ -441,9 +441,9 @@ static int ad7152_write_raw_get_fmt(struct iio_dev *indio_dev,
>  
>  static const struct iio_info ad7152_info = {
>  	.attrs = &ad7152_attribute_group,
> -	.read_raw = &ad7152_read_raw,
> -	.write_raw = &ad7152_write_raw,
> -	.write_raw_get_fmt = &ad7152_write_raw_get_fmt,
> +	.read_raw = ad7152_read_raw,
> +	.write_raw = ad7152_write_raw,
> +	.write_raw_get_fmt = ad7152_write_raw_get_fmt,
>  	.driver_module = THIS_MODULE,
>  };
>  
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 05/10] staging: iio: adis16240: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 05/10] staging: iio: adis16240: " simran singhal
@ 2017-03-11 18:40   ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:40 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Applied.
> ---
>  drivers/staging/iio/accel/adis16240.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/accel/adis16240.c b/drivers/staging/iio/accel/adis16240.c
> index 27d7f6a..37a29dc 100644
> --- a/drivers/staging/iio/accel/adis16240.c
> +++ b/drivers/staging/iio/accel/adis16240.c
> @@ -373,8 +373,8 @@ static const struct attribute_group adis16240_attribute_group = {
>  
>  static const struct iio_info adis16240_info = {
>  	.attrs = &adis16240_attribute_group,
> -	.read_raw = &adis16240_read_raw,
> -	.write_raw = &adis16240_write_raw,
> +	.read_raw = adis16240_read_raw,
> +	.write_raw = adis16240_write_raw,
>  	.update_scan_mode = adis_update_scan_mode,
>  	.driver_module = THIS_MODULE,
>  };
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 06/10] staging: iio: adis16201: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 06/10] staging: iio: adis16201: " simran singhal
@ 2017-03-11 18:41   ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:41 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Applied.
> ---
>  drivers/staging/iio/accel/adis16201.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/accel/adis16201.c b/drivers/staging/iio/accel/adis16201.c
> index d6c8658..7565268 100644
> --- a/drivers/staging/iio/accel/adis16201.c
> +++ b/drivers/staging/iio/accel/adis16201.c
> @@ -285,8 +285,8 @@ static const struct iio_chan_spec adis16201_channels[] = {
>  };
>  
>  static const struct iio_info adis16201_info = {
> -	.read_raw = &adis16201_read_raw,
> -	.write_raw = &adis16201_write_raw,
> +	.read_raw = adis16201_read_raw,
> +	.write_raw = adis16201_write_raw,
>  	.update_scan_mode = adis_update_scan_mode,
>  	.driver_module = THIS_MODULE,
>  };
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 07/10] staging: iio: adis16209: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 07/10] staging: iio: adis16209: " simran singhal
@ 2017-03-11 18:41   ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:41 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Applied.
> ---
>  drivers/staging/iio/accel/adis16209.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c
> index 8ff537f..56bc2ac 100644
> --- a/drivers/staging/iio/accel/adis16209.c
> +++ b/drivers/staging/iio/accel/adis16209.c
> @@ -285,8 +285,8 @@ static const struct iio_chan_spec adis16209_channels[] = {
>  };
>  
>  static const struct iio_info adis16209_info = {
> -	.read_raw = &adis16209_read_raw,
> -	.write_raw = &adis16209_write_raw,
> +	.read_raw = adis16209_read_raw,
> +	.write_raw = adis16209_write_raw,
>  	.update_scan_mode = adis_update_scan_mode,
>  	.driver_module = THIS_MODULE,
>  };
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 08/10] staging: iio: adis16203: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 08/10] staging: iio: adis16203: " simran singhal
@ 2017-03-11 18:41   ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:41 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Applied.
> ---
>  drivers/staging/iio/accel/adis16203.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c
> index 68189ad..b59755a 100644
> --- a/drivers/staging/iio/accel/adis16203.c
> +++ b/drivers/staging/iio/accel/adis16203.c
> @@ -233,8 +233,8 @@ static const struct iio_chan_spec adis16203_channels[] = {
>  };
>  
>  static const struct iio_info adis16203_info = {
> -	.read_raw = &adis16203_read_raw,
> -	.write_raw = &adis16203_write_raw,
> +	.read_raw = adis16203_read_raw,
> +	.write_raw = adis16203_write_raw,
>  	.update_scan_mode = adis_update_scan_mode,
>  	.driver_module = THIS_MODULE,
>  };
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 09/10] staging: iio: resolver: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 09/10] staging: iio: resolver: " simran singhal
@ 2017-03-11 18:45   ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:45 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Given there aren't any other functional pointers in some the ad2s90
I have amended the patch title to reflect that we are changing
this to have consistency across drivers in the wider subsystem.

Far as I'm concerned, it's nice to tidy up.  I'm not (currently)
advocating a tree wide sweep for these as the churn would be excessive
but it's not a bad thing to do in the staging drivers in my opinion!

Thanks,

Jonathan
> ---
>  drivers/staging/iio/resolver/ad2s1200.c | 2 +-
>  drivers/staging/iio/resolver/ad2s90.c   | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c
> index 82b2d88..a37e199 100644
> --- a/drivers/staging/iio/resolver/ad2s1200.c
> +++ b/drivers/staging/iio/resolver/ad2s1200.c
> @@ -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,
>  };
>  
> diff --git a/drivers/staging/iio/resolver/ad2s90.c b/drivers/staging/iio/resolver/ad2s90.c
> index 5b1c0db..b227090 100644
> --- a/drivers/staging/iio/resolver/ad2s90.c
> +++ b/drivers/staging/iio/resolver/ad2s90.c
> @@ -47,7 +47,7 @@ static int ad2s90_read_raw(struct iio_dev *indio_dev,
>  }
>  
>  static const struct iio_info ad2s90_info = {
> -	.read_raw = &ad2s90_read_raw,
> +	.read_raw = ad2s90_read_raw,
>  	.driver_module = THIS_MODULE,
>  };
>  
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 10/10] staging: iio: gyro: Remove exceptional & on function name
  2017-03-11 14:26 ` [PATCH v1 10/10] staging: iio: gyro: " simran singhal
@ 2017-03-11 18:48   ` Jonathan Cameron
  2017-03-11 18:57     ` Jonathan Cameron
  0 siblings, 1 reply; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:48 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 14:26, simran singhal wrote:
> 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>
Again, I couldn't identify any other function pointers in this file
so have amended the patch description to reflect that.

I also added a note that will hopefully prevent anyone seeing
this patch deciding to send me the several hundred patches it
'might' - I haven't checked - take to clean up the whole subsystem.

Thanks for the whole series.

Applied to the togreg branhc of iio.git and pushed out as testing.

Jonathan
> ---
>  drivers/staging/iio/gyro/adis16060_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/gyro/adis16060_core.c b/drivers/staging/iio/gyro/adis16060_core.c
> index ab816a2..c9d46e7 100644
> --- a/drivers/staging/iio/gyro/adis16060_core.c
> +++ b/drivers/staging/iio/gyro/adis16060_core.c
> @@ -117,7 +117,7 @@ static int adis16060_read_raw(struct iio_dev *indio_dev,
>  }
>  
>  static const struct iio_info adis16060_info = {
> -	.read_raw = &adis16060_read_raw,
> +	.read_raw = adis16060_read_raw,
>  	.driver_module = THIS_MODULE,
>  };
>  
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v1 10/10] staging: iio: gyro: Remove exceptional & on function name
  2017-03-11 18:48   ` Jonathan Cameron
@ 2017-03-11 18:57     ` Jonathan Cameron
  0 siblings, 0 replies; 23+ messages in thread
From: Jonathan Cameron @ 2017-03-11 18:57 UTC (permalink / raw)
  To: simran singhal, lars
  Cc: Michael.Hennerich, knaack.h, gregkh, linux-iio, devel,
	linux-kernel, outreachy-kernel

On 11/03/17 18:48, Jonathan Cameron wrote:
> On 11/03/17 14:26, simran singhal wrote:
>> 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>
> Again, I couldn't identify any other function pointers in this file
> so have amended the patch description to reflect that.
> 
> I also added a note that will hopefully prevent anyone seeing
> this patch deciding to send me the several hundred patches it
> 'might' - I haven't checked - take to clean up the whole subsystem.
> 
> Thanks for the whole series.
> 
> Applied to the togreg branhc of iio.git and pushed out as testing.
I spoke to soon. Something odd going on with kernel.org wrt to my
connection to it at least.   Will try to push out again later.

Jonathan
> 
> Jonathan
>> ---
>>  drivers/staging/iio/gyro/adis16060_core.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/staging/iio/gyro/adis16060_core.c b/drivers/staging/iio/gyro/adis16060_core.c
>> index ab816a2..c9d46e7 100644
>> --- a/drivers/staging/iio/gyro/adis16060_core.c
>> +++ b/drivers/staging/iio/gyro/adis16060_core.c
>> @@ -117,7 +117,7 @@ static int adis16060_read_raw(struct iio_dev *indio_dev,
>>  }
>>  
>>  static const struct iio_info adis16060_info = {
>> -	.read_raw = &adis16060_read_raw,
>> +	.read_raw = adis16060_read_raw,
>>  	.driver_module = THIS_MODULE,
>>  };
>>  
>>
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2017-03-11 18:57 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-11 14:26 [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name simran singhal
2017-03-11 14:26 ` [PATCH v1 01/10] staging: iio: ad7192: Remove exceptional & on function name simran singhal
2017-03-11 18:36   ` Jonathan Cameron
2017-03-11 14:26 ` [PATCH v1 02/10] staging: iio: ad7780: " simran singhal
2017-03-11 18:37   ` Jonathan Cameron
2017-03-11 14:26 ` [PATCH v1 03/10] staging: iio: cdc: ad7746: " simran singhal
2017-03-11 18:39   ` Jonathan Cameron
2017-03-11 14:26 ` [PATCH v1 04/10] staging: iio: cdc: ad7152: " simran singhal
2017-03-11 18:40   ` Jonathan Cameron
2017-03-11 14:26 ` [PATCH v1 05/10] staging: iio: adis16240: " simran singhal
2017-03-11 18:40   ` Jonathan Cameron
2017-03-11 14:26 ` [PATCH v1 06/10] staging: iio: adis16201: " simran singhal
2017-03-11 18:41   ` Jonathan Cameron
2017-03-11 14:26 ` [PATCH v1 07/10] staging: iio: adis16209: " simran singhal
2017-03-11 18:41   ` Jonathan Cameron
2017-03-11 14:26 ` [PATCH v1 08/10] staging: iio: adis16203: " simran singhal
2017-03-11 18:41   ` Jonathan Cameron
2017-03-11 14:26 ` [PATCH v1 09/10] staging: iio: resolver: " simran singhal
2017-03-11 18:45   ` Jonathan Cameron
2017-03-11 14:26 ` [PATCH v1 10/10] staging: iio: gyro: " simran singhal
2017-03-11 18:48   ` Jonathan Cameron
2017-03-11 18:57     ` Jonathan Cameron
2017-03-11 18:35 ` [PATCH v1 00/10] staging: iio: Remove exceptional & on functions name Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).