greybus: connection: Add sysfs 'ap_cport_id' file for connections
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 7 Sep 2015 12:26:58 +0000 (17:56 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 04:29:01 +0000 (21:29 -0700)
commit8552ca0f3634bf6aaf8f752fb9a73652326117eb
treec3eab25d80bbb0d06cbdc33eff4787e811b56ce6
parent0a020570ed2f7817998870a9451526ffe492c44a
greybus: connection: Add sysfs 'ap_cport_id' file for connections

Its a very useful piece of information, i.e. the cport id of the AP to
which the cport of the module is connected, and is required lots of
times. It isn't known in advance as it is allocated at runtime.

This patch creates another file 'ap_cport_id', only for the connection
directories, which will give the cport id of the AP.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/Documentation/sysfs-bus-greybus
drivers/staging/greybus/connection.c