{
struct gb_endo *endo = to_gb_endo(dev);
- return sprintf(buf, "%s", &endo->svc.serial_number[0]);
+ return sprintf(buf, "%s", &endo->svc_info.serial_number[0]);
}
static DEVICE_ATTR_RO(serial_number);
{
struct gb_endo *endo = to_gb_endo(dev);
- return sprintf(buf, "%s", &endo->svc.version[0]);
+ return sprintf(buf, "%s", &endo->svc_info.version[0]);
}
static DEVICE_ATTR_RO(version);
// FIXME
// Get the version and serial number from the SVC, right now we are
// using "fake" numbers.
- strcpy(&endo->svc.serial_number[0], "042");
- strcpy(&endo->svc.version[0], "0.0");
+ strcpy(&endo->svc_info.serial_number[0], "042");
+ strcpy(&endo->svc_info.version[0], "0.0");
dev_set_name(&endo->dev, "endo-0x%04x", endo->id);
retval = device_add(&endo->dev);
#define __ENDO_H
/* Greybus "public" definitions" */
-struct gb_svc {
+struct gb_svc_info {
u8 serial_number[10];
u8 version[10];
};
};
struct gb_endo {
- struct endo_layout layout;
struct device dev;
- struct gb_svc svc;
+ struct endo_layout layout;
+ struct gb_svc_info svc_info;
u16 id;
};
#define to_gb_endo(d) container_of(d, struct gb_endo, dev)