diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2016-02-26 21:54:38 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-02-26 21:57:03 -0800 |
commit | 611924dd72594200ac55957b4e68b0a65bab143b (patch) | |
tree | 3bade5eb495903a7e01739a916b974f2c1713efb /drivers/staging/greybus/core.c | |
parent | fb37f137b78f186275b15e8ce1e5a26b51a6e6ad (diff) |
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.c | 5 |
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; } |