greybus: interface: make attributes type dependent
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jul 2016 13:24:48 +0000 (15:24 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 20 Jul 2016 02:06:34 +0000 (19:06 -0700)
commit835642526e9310d435cc718cdb69f2fcd7a53b84
treed2062e87d4b23cd8d5ab5db22a7fcee54b96cab7
parent441ac1fa9ecdccf9d54803e2548464ca83ad8514
greybus: interface: make attributes type dependent

Make most interface attributes type dependent (e.g only UniPro and
Greybus interfaces should have a DDBL1 Manufacturer ID attribute).

Note that the power attributes (e.g. current_now) will only be visible
for UniPro- and Greybus-type interfaces (i.e. interfaces that can draw
power).

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c