From: Bhumika Goyal Date: Fri, 12 Feb 2016 15:10:29 +0000 (+0530) Subject: Staging: iio: magnetometer: remove exceptional & on function name X-Git-Tag: v4.6-rc1~103^2~837 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=343af6379e950266ee3d4f638a3ffe0b01b08eab;p=linux.git Staging: iio: magnetometer: remove exceptional & on function name In this file,function names are otherwise used as pointers without &. Found using coccinelle. // @r@ identifier f; @@ f(...) { ... } @@ identifier r.f; @@ - &f + f // Signed-off-by: Bhumika Goyal Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/magnetometer/hmc5843_core.c b/drivers/staging/iio/magnetometer/hmc5843_core.c index 94897993793e..9ee9a421a8b7 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, };