From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Robert Marko <robimarko@gmail.com>
Cc: andrew@lunn.ch, hkallweit1@gmail.com, andersson@kernel.org,
konrad.dybcio@linaro.org, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, ansuelsmth@gmail.com
Subject: Re: [PATCH net-next 1/2] net: phy: qcom: qca808x: add helper for checking for 1G only model
Date: Tue, 27 Feb 2024 16:28:08 +0000 [thread overview]
Message-ID: <Zd4NmB/RLRXFDpjh@shell.armlinux.org.uk> (raw)
In-Reply-To: <20240227162030.2728618-2-robimarko@gmail.com>
On Tue, Feb 27, 2024 at 05:19:28PM +0100, Robert Marko wrote:
> + if (QCA808X_PHY_CHIP_TYPE_1G & ret)
> + return true;
> + else
> + return false;
return !!(QCA808X_PHY_CHIP_TYPE_1G & ret);
is a shorter way to write that.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2024-02-27 16:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-27 16:19 [PATCH net-next 0/2] net: phy: qcom: qca808x: fill in possible_interfaces Robert Marko
2024-02-27 16:19 ` [PATCH net-next 1/2] net: phy: qcom: qca808x: add helper for checking for 1G only model Robert Marko
2024-02-27 16:28 ` Russell King (Oracle) [this message]
2024-02-27 16:19 ` [PATCH net-next 2/2] net: phy: qcom: qca808x: fill in possible_interfaces Robert Marko
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=Zd4NmB/RLRXFDpjh@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=andersson@kernel.org \
--cc=andrew@lunn.ch \
--cc=ansuelsmth@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=konrad.dybcio@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robimarko@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.