]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Staging: iio: light: remove exceptional & on function name
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 12 Feb 2016 15:10:28 +0000 (20:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:44:06 +0000 (16:44 -0800)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/light/isl29028.c

index 32ae1127da33af4255075ac567a79bc99d108ce5..e1bca9c551198e2227cde2978ec2932b0d9e0f66 100644 (file)
@@ -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)