mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
cros_ec: Use a hyphen in the uclass name
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; }; Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
4fc2365ccb
commit
16f4d05164
1 changed files with 1 additions and 1 deletions
|
@ -1482,7 +1482,7 @@ int cros_ec_set_lid_shutdown_mask(struct udevice *dev, int enable)
|
||||||
|
|
||||||
UCLASS_DRIVER(cros_ec) = {
|
UCLASS_DRIVER(cros_ec) = {
|
||||||
.id = UCLASS_CROS_EC,
|
.id = UCLASS_CROS_EC,
|
||||||
.name = "cros_ec",
|
.name = "cros-ec",
|
||||||
.per_device_auto_alloc_size = sizeof(struct cros_ec_dev),
|
.per_device_auto_alloc_size = sizeof(struct cros_ec_dev),
|
||||||
.post_bind = dm_scan_fdt_dev,
|
.post_bind = dm_scan_fdt_dev,
|
||||||
.flags = DM_UC_FLAG_ALLOC_PRIV_DMA,
|
.flags = DM_UC_FLAG_ALLOC_PRIV_DMA,
|
||||||
|
|
Loading…
Add table
Reference in a new issue