* [PATCH 0/3] Staging: iio: remove exceptional & on function name
@ 2016-02-12 15:10 Bhumika Goyal
2016-02-12 15:10 ` [PATCH 1/3] Staging: iio: light: " Bhumika Goyal
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bhumika Goyal @ 2016-02-12 15:10 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Bhumika Goyal
These files function names are otherwise used as pointers without &.
Found using coccinelle.
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
Bhumika Goyal (3):
Staging: iio: light: remove exceptional & on function name
Staging: iio: light: remove exceptional & on function name
Staging: iio: magnetometer: remove exceptional & on function name
drivers/staging/iio/light/isl29018.c | 8 ++++----
drivers/staging/iio/light/isl29028.c | 4 ++--
drivers/staging/iio/magnetometer/hmc5843_core.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] Staging: iio: light: remove exceptional & on function name
2016-02-12 15:10 [PATCH 0/3] Staging: iio: remove exceptional & on function name Bhumika Goyal
@ 2016-02-12 15:10 ` Bhumika Goyal
2016-02-12 15:10 ` [PATCH 2/3] " Bhumika Goyal
2016-02-12 15:10 ` [PATCH 3/3] Staging: iio: magnetometer: " Bhumika Goyal
2 siblings, 0 replies; 4+ messages in thread
From: Bhumika Goyal @ 2016-02-12 15:10 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Bhumika Goyal
In this file,function names are otherwise used as pointers without &.
Found using coccinelle.
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/staging/iio/light/isl29018.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
index bbf7e35..756057c 100644
--- a/drivers/staging/iio/light/isl29018.c
+++ b/drivers/staging/iio/light/isl29018.c
@@ -614,15 +614,15 @@ static int isl29018_chip_init(struct isl29018_chip *chip)
static const struct iio_info isl29018_info = {
.attrs = &isl29018_group,
.driver_module = THIS_MODULE,
- .read_raw = &isl29018_read_raw,
- .write_raw = &isl29018_write_raw,
+ .read_raw = isl29018_read_raw,
+ .write_raw = isl29018_write_raw,
};
static const struct iio_info isl29023_info = {
.attrs = &isl29023_group,
.driver_module = THIS_MODULE,
- .read_raw = &isl29018_read_raw,
- .write_raw = &isl29018_write_raw,
+ .read_raw = isl29018_read_raw,
+ .write_raw = isl29018_write_raw,
};
static bool is_volatile_reg(struct device *dev, unsigned int reg)
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] Staging: iio: light: remove exceptional & on function name
2016-02-12 15:10 [PATCH 0/3] Staging: iio: remove exceptional & on function name Bhumika Goyal
2016-02-12 15:10 ` [PATCH 1/3] Staging: iio: light: " Bhumika Goyal
@ 2016-02-12 15:10 ` Bhumika Goyal
2016-02-12 15:10 ` [PATCH 3/3] Staging: iio: magnetometer: " Bhumika Goyal
2 siblings, 0 replies; 4+ messages in thread
From: Bhumika Goyal @ 2016-02-12 15:10 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Bhumika Goyal
In this file,function names are otherwise used as pointers without &.
Found using coccinelle.
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/staging/iio/light/isl29028.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index 32ae112..e1bca9c 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -406,8 +406,8 @@ static const struct iio_chan_spec isl29028_channels[] = {
static const struct iio_info isl29028_info = {
.attrs = &isl29108_group,
.driver_module = THIS_MODULE,
- .read_raw = &isl29028_read_raw,
- .write_raw = &isl29028_write_raw,
+ .read_raw = isl29028_read_raw,
+ .write_raw = isl29028_write_raw,
};
static int isl29028_chip_init(struct isl29028_chip *chip)
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] Staging: iio: magnetometer: remove exceptional & on function name
2016-02-12 15:10 [PATCH 0/3] Staging: iio: remove exceptional & on function name Bhumika Goyal
2016-02-12 15:10 ` [PATCH 1/3] Staging: iio: light: " Bhumika Goyal
2016-02-12 15:10 ` [PATCH 2/3] " Bhumika Goyal
@ 2016-02-12 15:10 ` Bhumika Goyal
2 siblings, 0 replies; 4+ messages in thread
From: Bhumika Goyal @ 2016-02-12 15:10 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Bhumika Goyal
In this file,function names are otherwise used as pointers without &.
Found using coccinelle.
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/staging/iio/magnetometer/hmc5843_core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/iio/magnetometer/hmc5843_core.c b/drivers/staging/iio/magnetometer/hmc5843_core.c
index 394bc14..aaa5023 100644
--- a/drivers/staging/iio/magnetometer/hmc5843_core.c
+++ b/drivers/staging/iio/magnetometer/hmc5843_core.c
@@ -554,9 +554,9 @@ static int hmc5843_init(struct hmc5843_data *data)
static const struct iio_info hmc5843_info = {
.attrs = &hmc5843_group,
- .read_raw = &hmc5843_read_raw,
- .write_raw = &hmc5843_write_raw,
- .write_raw_get_fmt = &hmc5843_write_raw_get_fmt,
+ .read_raw = hmc5843_read_raw,
+ .write_raw = hmc5843_write_raw,
+ .write_raw_get_fmt = hmc5843_write_raw_get_fmt,
.driver_module = THIS_MODULE,
};
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-12 15:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-12 15:10 [PATCH 0/3] Staging: iio: remove exceptional & on function name Bhumika Goyal
2016-02-12 15:10 ` [PATCH 1/3] Staging: iio: light: " Bhumika Goyal
2016-02-12 15:10 ` [PATCH 2/3] " Bhumika Goyal
2016-02-12 15:10 ` [PATCH 3/3] Staging: iio: magnetometer: " Bhumika Goyal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.