[U-Boot] [PATCH v2 05/50] cros_ec: Use a hyphen in the uclass name

Simon Glass sjg at chromium.org
Thu May 2 16:53:09 UTC 2019


Hi Bin,

On Wed, 1 May 2019 at 06:00, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Hi Simon,
>
> On Fri, Apr 26, 2019 at 11:59 AM Simon Glass <sjg at chromium.org> wrote:
> >
> > Device-tree rules require that aliases use a hyphen rather than a
> > underscore. Update the uclass name to fit with this.
> >
> > This allows device-tree aliases to be used to refer to cros-ec devices,
> > for example:
> >
> >         aliases {
> >             cros-ec0 = &ec;
> >             cros-ec1 = &pd;
> >         };
>
> Thanks for adding the explanation here. But I was wondering since this
> is required by DT rules for the aliases node, do we have to require
> all UCLASS_DRIVERs to have name with hyphen instead of underscore?

It might be good to have this rule, in case people want to use aliases.

Regards,
Simon


More information about the U-Boot mailing list