From: simran singhal <singhalsimran0@gmail.com>
To: lars@metafoo.de
Cc: Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de,
gregkh@linuxfoundation.org, linux-iio@vger.kernel.org,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
outreachy-kernel@googlegroups.com
Subject: [PATCH 09/10] staging: iio: resolver: Remove exceptional & on function name
Date: Sat, 11 Mar 2017 09:06:40 +0530 [thread overview]
Message-ID: <1489203401-17518-10-git-send-email-singhalsimran0@gmail.com> (raw)
In-Reply-To: <1489203401-17518-1-git-send-email-singhalsimran0@gmail.com>
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: simran singhal <singhalsimran0@gmail.com>
---
drivers/staging/iio/resolver/ad2s1200.c | 2 +-
drivers/staging/iio/resolver/ad2s90.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c
index 82b2d88..a37e199 100644
--- a/drivers/staging/iio/resolver/ad2s1200.c
+++ b/drivers/staging/iio/resolver/ad2s1200.c
@@ -97,7 +97,7 @@ static const struct iio_chan_spec ad2s1200_channels[] = {
};
static const struct iio_info ad2s1200_info = {
- .read_raw = &ad2s1200_read_raw,
+ .read_raw = ad2s1200_read_raw,
.driver_module = THIS_MODULE,
};
diff --git a/drivers/staging/iio/resolver/ad2s90.c b/drivers/staging/iio/resolver/ad2s90.c
index 5b1c0db..b227090 100644
--- a/drivers/staging/iio/resolver/ad2s90.c
+++ b/drivers/staging/iio/resolver/ad2s90.c
@@ -47,7 +47,7 @@ static int ad2s90_read_raw(struct iio_dev *indio_dev,
}
static const struct iio_info ad2s90_info = {
- .read_raw = &ad2s90_read_raw,
+ .read_raw = ad2s90_read_raw,
.driver_module = THIS_MODULE,
};
--
2.7.4
next prev parent reply other threads:[~2017-03-11 3:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-11 3:36 [PATCH 00/10] staging: iio: Remove exceptional & on functions name simran singhal
2017-03-11 3:36 ` [PATCH 01/10] staging: iio: ad7192: Remove exceptional & on function name simran singhal
2017-03-11 3:36 ` [PATCH 02/10] staging: iio: ad7780: " simran singhal
2017-03-11 3:36 ` [PATCH 03/10] staging: iio: cdc: ad7746: " simran singhal
2017-03-11 3:36 ` [PATCH 04/10] staging: iio: cdc: ad7152: " simran singhal
2017-03-11 3:36 ` [PATCH 05/10] staging: iio: adis16240: " simran singhal
2017-03-11 3:36 ` [PATCH 06/10] staging: iio: adis16201: " simran singhal
2017-03-11 3:36 ` [PATCH 07/10] staging: iio: adis16209: " simran singhal
2017-03-11 3:36 ` [PATCH 08/10] staging: iio: adis16203: " simran singhal
2017-03-11 3:36 ` simran singhal [this message]
2017-03-11 3:36 ` [PATCH 10/10] staging: iio: gyro: " simran singhal
2017-03-11 6:42 ` [Outreachy kernel] [PATCH 00/10] staging: iio: Remove exceptional & on functions name Julia Lawall
2017-03-11 9:19 ` SIMRAN SINGHAL
2017-03-11 9:27 ` Julia Lawall
2017-03-11 11:32 ` SIMRAN SINGHAL
2017-03-11 11:40 ` Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1489203401-17518-10-git-send-email-singhalsimran0@gmail.com \
--to=singhalsimran0@gmail.com \
--cc=Michael.Hennerich@analog.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome