From 58d674650b96d7ae81cda68b0cbf40fb3f9a9726 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Tue, 28 Apr 2015 19:40:26 +0530 Subject: [PATCH 1/1] greybus: endo: Use a real endo id 0x0555 isn't a valid endo id, use a real one. 0x4755 should be the Endo id for the (medium) Spiral 2 prototype. Lets use that. Signed-off-by: Viresh Kumar Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/endo.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/staging/greybus/endo.c b/drivers/staging/greybus/endo.c index 28e1f2871bf8..b8f6163566be 100644 --- a/drivers/staging/greybus/endo.c +++ b/drivers/staging/greybus/endo.c @@ -61,14 +61,17 @@ struct device_type greybus_endo_type = { * * List must end with 0x00 in order to properly terminate the list. */ -static u8 endo_0555[] = { +static u8 endo_4755[] = { 0x01, 0x03, 0x05, + 0x06, 0x07, 0x08, 0x0a, 0x0c, + 0x0d, + 0x0e, 0x00, }; @@ -81,8 +84,8 @@ static int create_modules(struct gb_endo *endo) /* Depending on the endo type, create a bunch of different modules */ switch (endo->type) { - case 0x0555: - endo_modules = &endo_0555[0]; + case 0x4755: + endo_modules = &endo_4755[0]; break; default: dev_err(&endo->dev, "Unknown endo type 0x%04x, aborting!", @@ -120,7 +123,7 @@ struct gb_endo *gb_endo_create(struct greybus_host_device *hd) // using "fake" numbers. strcpy(&endo->svc.serial_number[0], "042"); strcpy(&endo->svc.version[0], "0.0"); - endo->type = 0x0555; + endo->type = 0x4755; dev_set_name(&endo->dev, "endo-0x%04x", endo->type); retval = device_add(&endo->dev); -- 2.20.1