mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maciej Strozek <mstrozek@opensource.cirrus.com>
To: Mika Westerberg <mika.westerberg@linux.intel.com>,
	Linus Walleij <linusw@kernel.org>
Cc: Andy Shevchenko <andy@kernel.org>,
	brgl@kernel.org, patches@opensource.cirrus.com,
	linux-gpio@vger.kernel.org, linux-sound@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pinctrl: cs42l43: Add GPIO controlled mic/spk mute LEDs
Date: Thu, 26 Nov 2026 09:08:55 +0000	[thread overview]
Message-ID: <6a80f55a1427295a375ac4f2bb5568b70a6839a0.camel@opensource.cirrus.com> (raw)
In-Reply-To: <20261126073545.GM191152@black.igk.intel.com>

W dniu czw, 26.11.2026 o godzinie 08∶35 +0100, użytkownik Mika
Westerberg napisał:
> > 
> If you do this:
> 
> #else
> static inline int cs42l43_mute_leds_register(struct cs42l43_pin
> *priv,
>       struct fwnode_handle *fwnode)
> {
>  return 0;
> }
> #endif
> 
> > > +
> > >  static int cs42l43_pin_probe(struct platform_device *pdev)
> > >  {
> > >         struct cs42l43 *cs42l43 = dev_get_drvdata(pdev-
> > > >dev.parent);
> > > @@ -598,6 +748,12 @@ static int cs42l43_pin_probe(struct
> > > platform_device *pdev)
> > >                 return dev_err_probe(priv->dev, ret,
> > >                                      "Failed to register
> > > gpiochip\n");
> > > 
> > > +#if IS_REACHABLE(CONFIG_LEDS_CLASS)
> > > +       ret = cs42l43_mute_leds_register(priv,
> > > dev_fwnode(cs42l43->dev));
> > > +       if (ret)
> > > +               return ret;
> > > +#endif
> 
> then this reads better:
> 
>  ret = cs42l43_mute_leds_register(priv, dev_fwnode(cs42l43->dev));
>  if (ret)
>  return ret;
> 
> > > +
> > > 

Yes, that looks nicer. Can send a v2 with that, but will wait if Andy
has any comments.

-- 
Regards,
Maciej

      reply	other threads:[~2026-11-26  9:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 14:20 Maciej Strozek
2026-11-11 11:01 ` Charles Keepax
2026-11-25 18:06 ` Linus Walleij
2026-11-26  7:35   ` Mika Westerberg
2026-11-26  9:08     ` Maciej Strozek [this message]

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=6a80f55a1427295a375ac4f2bb5568b70a6839a0.camel@opensource.cirrus.com \
    --to=mstrozek@opensource.cirrus.com \
    --cc=andy@kernel.org \
    --cc=brgl@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    --cc=patches@opensource.cirrus.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

all inboxes | Powered by JetHome®