From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Jongsung Kim <neidhard.kim@lge.com>
Cc: r58129@freescale.com, davem@davemloft.net,
peppe.cavallaro@st.com, chohnstaedt@innominate.com,
timur@freescale.com, heiko.carstens@de.ibm.com,
schwidefsky@de.ibm.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/4] net: phy: realtek: cleanup code
Date: Fri, 10 May 2013 15:18:28 +0400 [thread overview]
Message-ID: <518CD784.1030709@cogentembedded.com> (raw)
In-Reply-To: <1368170967-20589-4-git-send-email-neidhard.kim@lge.com>
Hello.
On 10-05-2013 11:29, Jongsung Kim wrote:
> This patch cleans up the drivers code by:
> - using a consistent way to reference functions
> - removing unused macro-definitions
> - removing unnecessary new-lines
> - making ack_interrupt functions shorter.
> Signed-off-by: Jongsung Kim <neidhard.kim@lge.com>
> ---
> drivers/net/phy/realtek.c | 29 ++++++++++-------------------
> 1 files changed, 10 insertions(+), 19 deletions(-)
> diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
> index 6f0726a..fd09844 100644
> --- a/drivers/net/phy/realtek.c
> +++ b/drivers/net/phy/realtek.c
[...]
> @@ -112,8 +103,8 @@ static struct phy_driver realtek_drv[] = {
> .read_status = &genphy_read_status,
> .ack_interrupt = &rtl8201f_ack_interrupt,
> .config_intr = &rtl8201f_config_intr,
> - .suspend = genphy_suspend,
> - .resume = genphy_resume,
> + .suspend = &genphy_suspend,
> + .resume = &genphy_resume,
Contrariwise, you should have dropped & from the other functions.
It's completely superfluous.
WBR, Sergei
next prev parent reply other threads:[~2013-05-10 11:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-08 10:10 net: phy: realtek: add rtl8201f driver Jongsung Kim
2013-05-08 10:41 ` Francois Romieu
2013-05-09 2:26 ` Jongsung Kim
2013-05-08 15:43 ` Sergei Shtylyov
2013-05-09 2:35 ` Jongsung Kim
2013-05-09 16:58 ` Sergei Shtylyov
2013-05-10 3:44 ` Jongsung Kim
2013-05-10 7:29 ` [PATCH v2 1/4] net: phy: realtek: simplify multiple drivers registration Jongsung Kim
2013-05-10 7:29 ` [PATCH v2 2/4] net: phy: realtek: add support for the RTL8201F Jongsung Kim
2013-05-10 7:29 ` [PATCH v2 3/4] net: phy: realtek: add suspend/resume handlers for the RTL8211B Jongsung Kim
2013-05-10 7:29 ` [PATCH v2 4/4] net: phy: realtek: cleanup code Jongsung Kim
2013-05-10 11:18 ` Sergei Shtylyov [this message]
2013-05-13 2:48 ` Jongsung Kim
2013-05-13 9:58 ` [PATCH v3 1/4] net: phy: realtek: simplify multiple drivers registration Jongsung Kim
2013-05-13 9:58 ` [PATCH v3 2/4] net: phy: realtek: add support for the RTL8201F Jongsung Kim
2013-05-13 9:58 ` [PATCH v3 3/4] net: phy: realtek: add suspend/resume handlers for the RTL8211B Jongsung Kim
2013-05-13 9:58 ` [PATCH v3 4/4] net: phy: realtek: cleanup code Jongsung Kim
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=518CD784.1030709@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=chohnstaedt@innominate.com \
--cc=davem@davemloft.net \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=neidhard.kim@lge.com \
--cc=netdev@vger.kernel.org \
--cc=peppe.cavallaro@st.com \
--cc=r58129@freescale.com \
--cc=schwidefsky@de.ibm.com \
--cc=timur@freescale.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;
as well as URLs for NNTP newsgroup(s).