diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-07-19 15:24:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-07-19 19:06:34 -0700 |
commit | 835642526e9310d435cc718cdb69f2fcd7a53b84 (patch) | |
tree | d2062e87d4b23cd8d5ab5db22a7fcee54b96cab7 /drivers/staging/greybus | |
parent | 441ac1fa9ecdccf9d54803e2548464ca83ad8514 (diff) |
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>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/interface.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c |