From: Andrew Lunn <andrew@lunn.ch>
To: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Cc: Jay Monkman <jtm@lopingdog.com>,
devicetree@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
Piergiorgio Beruto <piergiorgio.beruto@gmail.com>,
Arndt Schuebel <Arndt.Schuebel@onsemi.com>
Subject: Re: [PATCH 3/4] net: phy: Add GPIO and DT support to NCN26000
Date: Mon, 18 Sep 2023 18:19:20 +0200 [thread overview]
Message-ID: <ba9e7fb4-e19f-454c-9542-cb53b45f6b99@lunn.ch> (raw)
In-Reply-To: <b279bee8-1613-23ea-a339-9d3fdde9d0eb@linux.dev>
On Mon, Sep 18, 2023 at 11:40:36AM +0100, Vadim Fedorenko wrote:
> > +static int ncn26000_gpio_request(struct gpio_chip *gc, unsigned int offset)
> > +{
> > + struct ncn26000_priv *priv = gpiochip_get_data(gc);
> > +
> > + if (offset > 2)
> > + return -ENODEV;
> > +
> > + if (priv->gpiomask & (1 << offset))
>
> it's better to use BIT(offset) here
Hi Vadim
When replying, please trim the email to just the relevant text.
Thanks
Andrew
next prev parent reply other threads:[~2023-09-18 17:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-18 6:59 Jay Monkman
2023-09-18 10:40 ` Vadim Fedorenko
2023-09-18 16:19 ` Andrew Lunn [this message]
2023-09-18 16:18 ` Andrew Lunn
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=ba9e7fb4-e19f-454c-9542-cb53b45f6b99@lunn.ch \
--to=andrew@lunn.ch \
--cc=Arndt.Schuebel@onsemi.com \
--cc=devicetree@vger.kernel.org \
--cc=jtm@lopingdog.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=piergiorgio.beruto@gmail.com \
--cc=vadim.fedorenko@linux.dev \
/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
all inboxes | Powered by JetHome®