Staging: Remove exceptional & on function name
Subsystems (5)
cover Staging: Remove exceptional & on function name
These patches remove & on function name
The change is made using Coccinelle and a simplified version of the patch used is-
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
Shraddha Barke (3):
Staging: comedi: Remove exceptional & on function name
Staging: iio: Remove exceptional & on function name
Staging: most: Remove exceptional & on function name
drivers/staging/comedi/comedi_fops.c | 2 +- drivers/staging/iio/adc/ad7280a.c | 2 +- drivers/staging/iio/addac/adt7316.c | 2 +- drivers/staging/iio/resolver/ad2s1210.c | 2 +- drivers/staging/most/aim-sound/sound.c | 2 +- drivers/staging/most/mostcore/core.c | 3 ++- 6 files changed, 7 insertions(+), 6 deletions(-)
Signature · 1 line
2.1.4
PATCH 1/3 Staging: comedi: Remove exceptional & on function name
n this file, function names are otherwise used as pointers without &.
A simplified version of the Coccinelle semantic patch that makes this change is as follows:
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
--- drivers/staging/comedi/comedi_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/comedi_fops.c +1 -1
@@ -1341,7 +1341,7 @@ static int parse_insn(struct comedi_device *dev, struct comedi_insn *insn, goto out; }/* This looks arbitrary. It is. */ - s->busy = &parse_insn; + s->busy = parse_insn;switch (insn->insn) {case INSN_READ : ret = s->insn_read (dev, s, insn, data);
Signature · 1 line
2.1.4
PATCH 2/3 Staging: iio: Remove exceptional & on function name
In reply to Shraddha BarkeIn this file, function names are otherwise used as pointers without &.
A simplified version of the Coccinelle semantic patch that makes this change is as follows:
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
--- drivers/staging/iio/adc/ad7280a.c | 2 +- drivers/staging/iio/addac/adt7316.c | 2 +- drivers/staging/iio/resolver/ad2s1210.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/iio/adc/ad7280a.c +1 -1
@@ -817,7 +817,7 @@ static int ad7280_read_raw(struct iio_dev *indio_dev, }static const struct iio_info ad7280_info = { - .read_raw = &ad7280_read_raw, + .read_raw = ad7280_read_raw, .event_attrs = &ad7280_event_attrs_group, .attrs = &ad7280_attrs_group, .driver_module =THIS_MODULE ,
drivers/staging/iio/addac/adt7316.c +1 -1
@@ -2152,7 +2152,7 @@ int adt7316_probe(struct device *dev, struct adt7316_bus *bus, ret = devm_request_threaded_irq(dev, chip->bus.irq, NULL, - &adt7316_event_handler, + adt7316_event_handler, chip->bus.irq_flags | IRQF_ONESHOT, indio_dev->name,
drivers/staging/iio/resolver/ad2s1210.c +1 -1
@@ -633,7 +633,7 @@ error_ret: }static const struct iio_info ad2s1210_info = { - .read_raw = &ad2s1210_read_raw, + .read_raw = ad2s1210_read_raw, .attrs = &ad2s1210_attribute_group, .driver_module =THIS_MODULE , };
Signature · 1 line
2.1.4
PATCH 3/3 Staging: most: Remove exceptional & on function name
In reply to Shraddha BarkeIn this file, function names are otherwise used as pointers without &.
A simplified version of the Coccinelle semantic patch that makes this change is as follows:
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
--- drivers/staging/most/aim-sound/sound.c | 2 +- drivers/staging/most/mostcore/core.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/staging/most/aim-sound/sound.c +1 -1
@@ -279,7 +279,7 @@ static int pcm_open(struct snd_pcm_substream *substream) channel->substream = substream;if (cfg->direction ==MOST_CH_TX ) { - channel->playback_task =kthread_run (&playback_thread, channel, + channel->playback_task =kthread_run (playback_thread, channel,"most_audio_playback" );if (IS_ERR (channel->playback_task)) {pr_err ("Couldn't start thread\n" );
drivers/staging/most/mostcore/core.c +2 -1
@@ -1204,7 +1204,8 @@ static int hdm_enqueue_thread(void *data)static int run_enqueue_thread (struct most_c_obj *c,int channel_id) {struct task_struct *task = -kthread_run (&hdm_enqueue_thread, c,"hdm_fifo_%d" , channel_id); +kthread_run (hdm_enqueue_thread, c,"hdm_fifo_%d" , + channel_id);if (IS_ERR (task))return PTR_ERR (task);
Signature · 1 line
2.1.4