aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/core.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2016-02-26 21:54:38 -0800
committerGreg Kroah-Hartman <gregkh@google.com>2016-02-26 21:57:03 -0800
commit611924dd72594200ac55957b4e68b0a65bab143b (patch)
tree3bade5eb495903a7e01739a916b974f2c1713efb /drivers/staging/greybus/core.c
parentgreybus: loopback: Fix averaging (diff)
downloadlinux-dev-611924dd72594200ac55957b4e68b0a65bab143b.tar.xz
linux-dev-611924dd72594200ac55957b4e68b0a65bab143b.zip
greybus: expose full 32 bits of vid/pid to userspace
Now that userspace is ready for all 32 bits of the vid/pid, take off our mask and send the full values. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r--drivers/staging/greybus/core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c
index 2fb95744e01c..ca7469ee8994 100644
--- a/drivers/staging/greybus/core.c
+++ b/drivers/staging/greybus/core.c
@@ -112,9 +112,8 @@ static int greybus_uevent(struct device *dev, struct kobj_uevent_env *env)
if (intf) {
if (add_uevent_var(env, "INTERFACE=%u", intf->interface_id))
return -ENOMEM;
- if (add_uevent_var(env, "GREYBUS_ID=%04x/%04x",
- (u16)(intf->vendor_id & 0xffff),
- (u16)(intf->product_id & 0xffff)))
+ if (add_uevent_var(env, "GREYBUS_ID=%08x/%08x",
+ intf->vendor_id, intf->product_id))
return -ENOMEM;
}