cros_ec: Use a hyphen in the uclass name
authorSimon Glass <sjg@chromium.org>
Thu, 2 May 2019 16:52:11 +0000 (10:52 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 04:44:07 +0000 (12:44 +0800)
commit16f4d05164eb5418d4bafd5a058813c97a431273
tree43ea20aafefcbaa7c46337bf1fc65e3d292070cd
parent4fc2365ccb911a1a3401e88be702c5c42ab6386a
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>
drivers/misc/cros_ec.c