]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: hd: add bus_id attribute
authorSandeep Patil <sspatil@google.com>
Fri, 29 Apr 2016 14:13:23 +0000 (07:13 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 29 Apr 2016 21:09:44 +0000 (14:09 -0700)
commitfbbd2b7c0876550b20c6ac0ee2df90ecc262712c
tree74171bfbe71b1c29c81f66ff82d234b07a3b6124
parent6ddbed576606a454353638dbbbcc2f66f0fc712d
greybus: hd: add bus_id attribute

The greybus host device id can only be read by parsing the uevent if one
wants to identify a specific host device 'or' bus. This is 'lsgb' uses
today.

This change adds a bus_id attribute so libraries can identify multiple
host devices 'or' bus if they exist.

Testing Done:
Tested on Arche,
'cat /sys/bus/greybus/devices/greysbus1/bus_id'

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