Commit 9f59263a authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: interface: rename vendor and product attributes

Rename vendor and product attributes vendor_id and product_id.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent fda34125
...@@ -33,11 +33,11 @@ static int greybus_match_one_id(struct gb_bundle *bundle, ...@@ -33,11 +33,11 @@ static int greybus_match_one_id(struct gb_bundle *bundle,
const struct greybus_bundle_id *id) const struct greybus_bundle_id *id)
{ {
if ((id->match_flags & GREYBUS_ID_MATCH_VENDOR) && if ((id->match_flags & GREYBUS_ID_MATCH_VENDOR) &&
(id->vendor != bundle->intf->vendor)) (id->vendor != bundle->intf->vendor_id))
return 0; return 0;
if ((id->match_flags & GREYBUS_ID_MATCH_PRODUCT) && if ((id->match_flags & GREYBUS_ID_MATCH_PRODUCT) &&
(id->product != bundle->intf->product)) (id->product != bundle->intf->product_id))
return 0; return 0;
if ((id->match_flags & GREYBUS_ID_MATCH_CLASS) && if ((id->match_flags & GREYBUS_ID_MATCH_CLASS) &&
......
...@@ -41,7 +41,7 @@ static int download_firmware(struct gb_firmware *firmware, u8 stage) ...@@ -41,7 +41,7 @@ static int download_firmware(struct gb_firmware *firmware, u8 stage)
snprintf(firmware_name, sizeof(firmware_name), snprintf(firmware_name, sizeof(firmware_name),
"ara:%08x:%08x:%08x:%08x:%02x.tftf", "ara:%08x:%08x:%08x:%08x:%02x.tftf",
intf->unipro_mfg_id, intf->unipro_prod_id, intf->unipro_mfg_id, intf->unipro_prod_id,
intf->vendor, intf->product, stage); intf->vendor_id, intf->product_id, stage);
return request_firmware(&firmware->fw, firmware_name, return request_firmware(&firmware->fw, firmware_name,
&connection->bundle->dev); &connection->bundle->dev);
......
...@@ -21,15 +21,15 @@ static ssize_t field##_show(struct device *dev, \ ...@@ -21,15 +21,15 @@ static ssize_t field##_show(struct device *dev, \
static DEVICE_ATTR_RO(field) static DEVICE_ATTR_RO(field)
gb_interface_attr(device_id, d); gb_interface_attr(device_id, d);
gb_interface_attr(vendor, x); gb_interface_attr(vendor_id, x);
gb_interface_attr(product, x); gb_interface_attr(product_id, x);
gb_interface_attr(vendor_string, s); gb_interface_attr(vendor_string, s);
gb_interface_attr(product_string, s); gb_interface_attr(product_string, s);
static struct attribute *interface_attrs[] = { static struct attribute *interface_attrs[] = {
&dev_attr_device_id.attr, &dev_attr_device_id.attr,
&dev_attr_vendor.attr, &dev_attr_vendor_id.attr,
&dev_attr_product.attr, &dev_attr_product_id.attr,
&dev_attr_vendor_string.attr, &dev_attr_vendor_string.attr,
&dev_attr_product_string.attr, &dev_attr_product_string.attr,
NULL, NULL,
......
...@@ -28,8 +28,8 @@ struct gb_interface { ...@@ -28,8 +28,8 @@ struct gb_interface {
/* Information taken from the hotplug event */ /* Information taken from the hotplug event */
u32 unipro_mfg_id; u32 unipro_mfg_id;
u32 unipro_prod_id; u32 unipro_prod_id;
u32 vendor; u32 vendor_id;
u32 product; u32 product_id;
struct gb_module *module; struct gb_module *module;
struct gb_host_device *hd; struct gb_host_device *hd;
......
...@@ -460,8 +460,8 @@ static void svc_process_hotplug(struct work_struct *work) ...@@ -460,8 +460,8 @@ static void svc_process_hotplug(struct work_struct *work)
intf->unipro_mfg_id = le32_to_cpu(hotplug->data.unipro_mfg_id); intf->unipro_mfg_id = le32_to_cpu(hotplug->data.unipro_mfg_id);
intf->unipro_prod_id = le32_to_cpu(hotplug->data.unipro_prod_id); intf->unipro_prod_id = le32_to_cpu(hotplug->data.unipro_prod_id);
intf->vendor = le32_to_cpu(hotplug->data.ara_vend_id); intf->vendor_id = le32_to_cpu(hotplug->data.ara_vend_id);
intf->product = le32_to_cpu(hotplug->data.ara_prod_id); intf->product_id = le32_to_cpu(hotplug->data.ara_prod_id);
/* /*
* Create a device id for the interface: * Create a device id for the interface:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment