greybus: gpbridge: Expose protocol_id in sysfs
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 12 May 2016 06:50:02 +0000 (12:20 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 13 May 2016 10:02:57 +0000 (12:02 +0200)
commit6f8a028fd17bbb3102c81dc4fd30f2d722234b5e
tree901c2f9c98b68e62fe72cc20747885dca24c3f48
parent792db396d3209f4e20aea8c73407ac1f34b45a2b
greybus: gpbridge: Expose protocol_id in sysfs

Right now, userspace doesn't have any way to find what protocol does a
gpbridge device implement. And this is essential for the scripts to
know, to expect what kind of device will be present inside the gpbN
directory.

Expose 'protocol_id' in sysfs to fix that.

Tested by checking that the field appears with GP module on EVT 1.5.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Sandeep Patil <sspatil@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/gpbridge.c