All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
Cc: "Chen-Yu Tsai" <wenst@chromium.org>,
	"Bartosz Golaszewski" <brgl@kernel.org>,
	"Cosmin Tanislav" <cosmin-gabriel.tanislav.xa@renesas.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-pm@vger.kernel.org, linux-iio@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org,
	"Lad Prabhakar" <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	"Geert Uytterhoeven" <geert+renesas@glider.be>,
	"Biju Das" <biju.das.jz@bp.renesas.com>
Subject: Re: [PATCH v2 1/2] power: sequencing: Allow desc=NULL in enable/disable stub functions
Date: Thu, 26 Nov 2026 13:39:09 +0100	[thread overview]
Message-ID: <awgoaQTep07E_w6i@shikoro> (raw)
In-Reply-To: <CA+V-a8tqzDTbMu5375vub=DBHmpJWW2TvUGKfsuPf_gjpSuC=w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]


> >  static inline int pwrseq_enable(struct pwrseq_desc *desc)
> >  {
> > +       if (!desc)
> > +               return 0;
> > +
> >         return -ENOSYS;

Bike-shedding alert: What about the ternary operator? It is nicely
concise here:

	return desc ? -ENOSYS : 0;

Other than that:

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-11-26 12:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  8:11 [PATCH v2 0/2] iio: adc: rzt2h: Make POWER_SEQUENCING dependency optional Chen-Yu Tsai
2026-11-26  8:11 ` [PATCH v2 1/2] power: sequencing: Allow desc=NULL in enable/disable stub functions Chen-Yu Tsai
2026-11-26 11:45   ` Lad, Prabhakar
2026-11-26 12:39     ` Wolfram Sang [this message]
2026-11-26 15:18       ` Andy Shevchenko
2026-11-26 15:33         ` Bartosz Golaszewski
2026-11-26  8:11 ` [PATCH v2 2/2] iio: adc: rzt2h: depend on POWER_SEQUENCING instead of selecting it Chen-Yu Tsai
2026-11-26 11:52   ` Lad, Prabhakar

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=awgoaQTep07E_w6i@shikoro \
    --to=wsa+renesas@sang-engineering.com \
    --cc=andy@kernel.org \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=brgl@kernel.org \
    --cc=cosmin-gabriel.tanislav.xa@renesas.com \
    --cc=dlechner@baylibre.com \
    --cc=geert+renesas@glider.be \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=prabhakar.csengg@gmail.com \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=wenst@chromium.org \
    /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.