[PATCH 1/3] of: replace of_alias_get_highest_id() with of_alias_get_free_id()

Sascha Hauer s.hauer at pengutronix.de
Thu Dec 18 00:40:59 PST 2025


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 at pengutronix.de>




More information about the barebox mailing list