greybus: interface: clear upper 16-bits of version_id and product_id
authorMichael Scott <michael.scott@linaro.org>
Tue, 9 Feb 2016 01:08:46 +0000 (17:08 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 10 Feb 2016 19:28:13 +0000 (11:28 -0800)
commitd5a265648aa830383bc2c3e750ffe1bea0cd4309
tree3b7ddee517120de5c94aea1969812342b6d03e27
parentf6d6f5bd29f76721d7ac5c64426a1f45203c622a
greybus: interface: clear upper 16-bits of version_id and product_id

Current userspace looks through the sysfs interface entries for
matching vendor_id and product_id any time an interface is opened
by module developers.  The upper 16-bits of ES3 vendor_id and
product_id contain a reverse mask of the lower 16-bits.  This
additional information is never used and should be removed so
that every consumer of these sysfs entries doesn't have to perform
the same bit clearing logic.

Signed-off-by: Michael Scott <michael.scott@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c