Skip to contentSkip to conversation

staging: iio: Remove exceptional & on functions name

PATCH Applied simran singhal 2 participants 23 messages Mar 11, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover staging: iio: Remove exceptional & on functions name

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(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/10 staging: iio: ad7192: Remove exceptional & on function name

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>

---
 drivers/staging/iio/adc/ad7192.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/iio/adc/ad7192.c +6 -6
index 4fc8588..d11c6de 100644
@@ -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,
Signature · 1 line
2.7.4
maintainer Applied
#2 lore raw

Re: [PATCH v1 01/10] staging: iio: ad7192: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.

Thanks,

Jonathan

Quoted 34 lines
---
 drivers/staging/iio/adc/ad7192.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/iio/adc/ad7192.c +6 -6
index 4fc8588..d11c6de 100644
@@ -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,
#3 lore raw

PATCH 2/10 staging: iio: ad7780: Remove exceptional & on function name

In reply to simran singhal

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>

---
 drivers/staging/iio/adc/ad7780.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/adc/ad7780.c +1 -1
index e149600..dec3ba6 100644
@@ -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,
 };
 
Signature · 1 line
2.7.4
maintainer Applied
#4 lore raw

Re: [PATCH v1 02/10] staging: iio: ad7780: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

Applied.

Thanks,

Quoted 18 lines
---
 drivers/staging/iio/adc/ad7780.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/adc/ad7780.c +1 -1
index e149600..dec3ba6 100644
@@ -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,
 };
 
#5 lore raw

PATCH 3/10 staging: iio: cdc: ad7746: Remove exceptional & on function name

In reply to simran singhal

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>

---
 drivers/staging/iio/cdc/ad7746.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/cdc/ad7746.c +2 -2
index 81f8b9e..6294de7 100644
@@ -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,
 };
 
Signature · 1 line
2.7.4
maintainer Applied
#6 lore raw

Re: [PATCH v1 03/10] staging: iio: cdc: ad7746: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

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

Quoted 20 lines
---
 drivers/staging/iio/cdc/ad7746.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/cdc/ad7746.c +2 -2
index 81f8b9e..6294de7 100644
@@ -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,
 };
 
#7 lore raw

PATCH 4/10 staging: iio: cdc: ad7152: Remove exceptional & on function name

In reply to simran singhal

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>

---
 drivers/staging/iio/cdc/ad7152.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/iio/cdc/ad7152.c +3 -3
index e8609b8..59ef93c 100644
@@ -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,
 };
 
Signature · 1 line
2.7.4
maintainer Applied
#8 lore raw

Re: [PATCH v1 04/10] staging: iio: cdc: ad7152: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

Applied.

Quoted 22 lines
---
 drivers/staging/iio/cdc/ad7152.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/iio/cdc/ad7152.c +3 -3
index e8609b8..59ef93c 100644
@@ -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,
 };
 
#9 lore raw

PATCH 5/10 staging: iio: adis16240: Remove exceptional & on function name

In reply to simran singhal

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>

---
 drivers/staging/iio/accel/adis16240.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/accel/adis16240.c +2 -2
index 27d7f6a..37a29dc 100644
@@ -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,
 };
Signature · 1 line
2.7.4
maintainer Applied
#10 lore raw

Re: [PATCH v1 05/10] staging: iio: adis16240: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

Applied.

Quoted 20 lines
---
 drivers/staging/iio/accel/adis16240.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/accel/adis16240.c +2 -2
index 27d7f6a..37a29dc 100644
@@ -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,
 };
#11 lore raw

PATCH 6/10 staging: iio: adis16201: Remove exceptional & on function name

In reply to simran singhal

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>

---
 drivers/staging/iio/accel/adis16201.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/accel/adis16201.c +2 -2
index d6c8658..7565268 100644
@@ -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,
 };
Signature · 1 line
2.7.4
maintainer Applied
#12 lore raw

Re: [PATCH v1 06/10] staging: iio: adis16201: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

Applied.

Quoted 20 lines
---
 drivers/staging/iio/accel/adis16201.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/accel/adis16201.c +2 -2
index d6c8658..7565268 100644
@@ -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,
 };
#13 lore raw

PATCH 7/10 staging: iio: adis16209: Remove exceptional & on function name

In reply to simran singhal

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>

---
 drivers/staging/iio/accel/adis16209.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/accel/adis16209.c +2 -2
index 8ff537f..56bc2ac 100644
@@ -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,
 };
Signature · 1 line
2.7.4
maintainer Applied
#14 lore raw

Re: [PATCH v1 07/10] staging: iio: adis16209: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

Applied.

Quoted 20 lines
---
 drivers/staging/iio/accel/adis16209.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/accel/adis16209.c +2 -2
index 8ff537f..56bc2ac 100644
@@ -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,
 };
#15 lore raw

PATCH 8/10 staging: iio: adis16203: Remove exceptional & on function name

In reply to simran singhal

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>

---
 drivers/staging/iio/accel/adis16203.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/accel/adis16203.c +2 -2
index 68189ad..b59755a 100644
@@ -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,
 };
Signature · 1 line
2.7.4
maintainer Applied
#16 lore raw

Re: [PATCH v1 08/10] staging: iio: adis16203: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

Applied.

Quoted 20 lines
---
 drivers/staging/iio/accel/adis16203.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/accel/adis16203.c +2 -2
index 68189ad..b59755a 100644
@@ -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,
 };
#17 lore raw

PATCH 9/10 staging: iio: resolver: Remove exceptional & on function name

In reply to simran singhal

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>

---
 drivers/staging/iio/resolver/ad2s1200.c | 2 +-
 drivers/staging/iio/resolver/ad2s90.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/resolver/ad2s1200.c +1 -1
index 82b2d88..a37e199 100644
@@ -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,
 };
 
drivers/staging/iio/resolver/ad2s90.c +1 -1
index 5b1c0db..b227090 100644
@@ -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,
 };
 
Signature · 1 line
2.7.4
maintainer
#18 lore raw

Re: [PATCH v1 09/10] staging: iio: resolver: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

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

Quoted 32 lines
---
 drivers/staging/iio/resolver/ad2s1200.c | 2 +-
 drivers/staging/iio/resolver/ad2s90.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/resolver/ad2s1200.c +1 -1
index 82b2d88..a37e199 100644
@@ -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,
 };
 
drivers/staging/iio/resolver/ad2s90.c +1 -1
index 5b1c0db..b227090 100644
@@ -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,
 };
 
#19 lore raw

PATCH 10/10 staging: iio: gyro: Remove exceptional & on function name

In reply to simran singhal

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>

---
 drivers/staging/iio/gyro/adis16060_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/gyro/adis16060_core.c +1 -1
index ab816a2..c9d46e7 100644
@@ -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,
 };
 
Signature · 1 line
2.7.4
maintainer
#20 lore raw

Re: [PATCH v1 10/10] staging: iio: gyro: Remove exceptional & on function name

Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

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

Quoted 18 lines
---
 drivers/staging/iio/gyro/adis16060_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/gyro/adis16060_core.c +1 -1
index ab816a2..c9d46e7 100644
@@ -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,
 };
 
maintainer
#21 lore raw

Re: [PATCH v1 10/10] staging: iio: gyro: Remove exceptional & on function name

Quoted 22 lines · Jonathan Cameron
Quoted 13 lines · simran singhal

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;
@@

Quoted 5 lines

- &f
+ f
// </smpl>

Again, I couldn't identify any other function pointers in this file so have amended the patch description to reflect that.

Quoted 7 lines

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

Quoted 26 lines

Jonathan

Quoted 10 lines
---
 drivers/staging/iio/gyro/adis16060_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/gyro/adis16060_core.c +0 -0
index ab816a2..c9d46e7 100644

drivers/staging/iio/gyro/adis16060_core.c static int adis16060_read_raw(struct iio_dev *indio_dev, · line 123

Quoted 8 lines
drivers/staging/iio/gyro/adis16060_core.c +1 -1
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#22 lore raw
In reply to simran singhal
Quoted 4 lines · simran singhal

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

Quoted 26 lines

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(-)