From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>,
Sascha Hauer <s.hauer@pengutronix.de>
Subject: Re: [PATCH 1/3] of: replace of_alias_get_highest_id() with of_alias_get_free_id()
Date: Thu, 18 Dec 2025 09:40:59 +0100 [thread overview]
Message-ID: <176604725904.2002824.8140213724729966043.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20251217145156.1581678-1-s.hauer@pengutronix.de>
On Wed, 17 Dec 2025 15:51:53 +0100, Sascha Hauer wrote:
> of_alias_get_highest_id() returns the highest alias id used for a stem.
> This return value is not what the callers actually need. They need the
> first free ID instead. Replace of_alias_get_highest_id() with
> of_alias_get_free_id() which returns that value. This variant doesn't
> need to handle the special case when no alias for a stem is found
> in the device tree. In this case of_alias_get_highest_id() returned a
> negative error code which must be handled. The new function is more
> handy for the callers, it just returns 0 which can be used as a free
> id.
>
> [...]
Applied, thanks!
[1/3] of: replace of_alias_get_highest_id() with of_alias_get_free_id()
https://git.pengutronix.de/cgit/barebox/commit/?id=68d350dbc4ed (link may not be stable)
[2/3] i2c: implement i2c_unregister_device()
https://git.pengutronix.de/cgit/barebox/commit/?id=aec4d2374992 (link may not be stable)
[3/3] eeprom: at24: unregister devices in error path
https://git.pengutronix.de/cgit/barebox/commit/?id=ebd2558bf99b (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2025-12-18 8:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-17 14:51 Sascha Hauer
2025-12-17 14:51 ` [PATCH 2/3] i2c: implement i2c_unregister_device() Sascha Hauer
2025-12-17 14:51 ` [PATCH 3/3] eeprom: at24: unregister devices in error path Sascha Hauer
2025-12-18 8:40 ` Sascha Hauer [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=176604725904.2002824.8140213724729966043.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox