Skip to content

Commit

Permalink
Staging:iio:Remove exceptional & on function name
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Bhumika Goyal authored and Jonathan Cameron committed Feb 6, 2016
1 parent c89e2e2 commit 478375c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/iio/impedance-analyzer/ad5933.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ static int ad5933_read_raw(struct iio_dev *indio_dev,
}

static const struct iio_info ad5933_info = {
.read_raw = &ad5933_read_raw,
.read_raw = ad5933_read_raw,
.attrs = &ad5933_attribute_group,
.driver_module = THIS_MODULE,
};
Expand Down Expand Up @@ -616,9 +616,9 @@ static int ad5933_ring_postdisable(struct iio_dev *indio_dev)
}

static const struct iio_buffer_setup_ops ad5933_ring_setup_ops = {
.preenable = &ad5933_ring_preenable,
.postenable = &ad5933_ring_postenable,
.postdisable = &ad5933_ring_postdisable,
.preenable = ad5933_ring_preenable,
.postenable = ad5933_ring_postenable,
.postdisable = ad5933_ring_postdisable,
};

static int ad5933_register_ring_funcs_and_init(struct iio_dev *indio_dev)
Expand Down

0 comments on commit 478375c

Please sign in to comment.