[PATCH 12/18] misc: storage-by-uuid: prepare for generalizing to different aliases
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Apr 14 03:35:29 PDT 2025
Hello Marco,
On 4/14/25 12:31, Marco Felsch wrote:
> On 25-04-14, Ahmad Fatoum wrote:
>> -static struct of_device_id storage_by_uuid_dt_ids[] = {
>> +static int sba_probe(struct device *dev)
>> +{
>> + int (*init)(struct sba *);
>
> This does the job but a proper driver_data struct would be the more
> aligned to all other drivers.
IMO if we ever need more than one member in driver_data, it should
probably be a separate driver and not a storage-by-alias.
Cheers,
Ahmad
>
> Regards,
> Marco
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list