From 078ef067bca6725ab71c0c8d58112ae66097062f Mon Sep 17 00:00:00 2001 From: Johan Hovold <johan@hovoldconsulting.com> Date: Wed, 13 Apr 2016 19:18:59 +0200 Subject: [PATCH] greybus: Documentation/sysfs: add example control devices MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add control devices to the example sysfs tree. Control devices are named <bus_id>-<module_id>.<intf_id>.ctrl and expose attributes that are specific to the greybus interface type. Specifically, dummy interfaces do not have a control device. Currently, only the vendor and product strings extracted from the manifest are exported. A subtree of the example tree now looks as follows: greybus1/ âââ 1-5 â  âââ 1-5.5 â  â  âââ 1-5.5.2 â  â  â  âââ bundle_class â  â  â  âââ bundle_id â  â  â  âââ state â  â  âââ 1-5.5.ctrl â  â  â  âââ product_string â  â  â  âââ vendor_string â  â  âââ ddbl1_manufacturer_id â  â  âââ ddbl1_product_id â  â  âââ interface_id â  â  âââ product_id â  â  âââ serial_number â  â  âââ vendor_id â  âââ 1-5.6 â  â  âââ interface_id â  âââ eject â  âââ module_id â  âââ num_interfaces âââ 1-svc Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> --- .../sysfs/greybus1/1-2/1-2.2/1-2.2.ctrl/product_string | 0 .../sysfs/greybus1/1-2/1-2.2/1-2.2.ctrl/vendor_string | 0 .../sysfs/greybus1/1-5/1-5.5/1-5.5.ctrl/product_string | 0 .../sysfs/greybus1/1-5/1-5.5/1-5.5.ctrl/vendor_string | 0 .../sysfs/greybus2/2-3/2-3.3/2-3.3.ctrl/product_string | 0 .../sysfs/greybus2/2-3/2-3.3/2-3.3.ctrl/vendor_string | 0 6 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/greybus/Documentation/sysfs/greybus1/1-2/1-2.2/1-2.2.ctrl/product_string create mode 100644 drivers/staging/greybus/Documentation/sysfs/greybus1/1-2/1-2.2/1-2.2.ctrl/vendor_string create mode 100644 drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.5/1-5.5.ctrl/product_string create mode 100644 drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.5/1-5.5.ctrl/vendor_string create mode 100644 drivers/staging/greybus/Documentation/sysfs/greybus2/2-3/2-3.3/2-3.3.ctrl/product_string create mode 100644 drivers/staging/greybus/Documentation/sysfs/greybus2/2-3/2-3.3/2-3.3.ctrl/vendor_string diff --git a/drivers/staging/greybus/Documentation/sysfs/greybus1/1-2/1-2.2/1-2.2.ctrl/product_string b/drivers/staging/greybus/Documentation/sysfs/greybus1/1-2/1-2.2/1-2.2.ctrl/product_string new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/drivers/staging/greybus/Documentation/sysfs/greybus1/1-2/1-2.2/1-2.2.ctrl/vendor_string b/drivers/staging/greybus/Documentation/sysfs/greybus1/1-2/1-2.2/1-2.2.ctrl/vendor_string new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.5/1-5.5.ctrl/product_string b/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.5/1-5.5.ctrl/product_string new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.5/1-5.5.ctrl/vendor_string b/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.5/1-5.5.ctrl/vendor_string new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/drivers/staging/greybus/Documentation/sysfs/greybus2/2-3/2-3.3/2-3.3.ctrl/product_string b/drivers/staging/greybus/Documentation/sysfs/greybus2/2-3/2-3.3/2-3.3.ctrl/product_string new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/drivers/staging/greybus/Documentation/sysfs/greybus2/2-3/2-3.3/2-3.3.ctrl/vendor_string b/drivers/staging/greybus/Documentation/sysfs/greybus2/2-3/2-3.3/2-3.3.ctrl/vendor_string new file mode 100644 index 0000000000000..e69de29bb2d1d -- 2.30.2