OSDN Git Service

greybus: endo: drop redundant prefixes from sysfs basenames
authorAlex Elder <elder@linaro.org>
Wed, 27 May 2015 16:17:52 +0000 (11:17 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 28 May 2015 21:45:56 +0000 (14:45 -0700)
commit312bb84942cb6707cf9b3933a6c74cbe5e9ed037
treee7d791aeab33c7db03fab4cf5c87e58f75ec1db1
parent28e3cedcceecb62ecbc77a35eda3875bbe981f1b
greybus: endo: drop redundant prefixes from sysfs basenames

This commit:
    7e761e2 endo: rework some attributes
added a new "endo_id" attribute, located under a new "Endo"
directory in sysfs.  The resulting path looks like:
    Documentation/sysfs/endo-TYPE/Endo/endo_id
There's no need to have a separate "Endo" subdirectory to contain
Endo-specific attributes.

That commit also added "svc_" to some other paths related to the
SVC, like:
    Documentation/sysfs/endo-TYPE/SVC/svc_version
The additional "svc_" is redundant.

This patch retouches those paths a bit, mainly to remove some
redundancy.  It also makes the pathname components all lower case.
As a result, the above two paths now look like:
    Documentation/sysfs/endo-TYPE/id
    Documentation/sysfs/endo-TYPE/svc/version

All other Endo sysfs files are updated similarly.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-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/Documentation/sysfs/endo-TYPE/ap_intf_id [moved from drivers/staging/greybus/Documentation/sysfs/endo-TYPE/Endo/ap_intf_id with 100% similarity]
drivers/staging/greybus/Documentation/sysfs/endo-TYPE/id [moved from drivers/staging/greybus/Documentation/sysfs/endo-TYPE/Endo/endo_id with 100% similarity]
drivers/staging/greybus/Documentation/sysfs/endo-TYPE/svc/firmware [moved from drivers/staging/greybus/Documentation/sysfs/endo-TYPE/SVC/firmware with 100% similarity]
drivers/staging/greybus/Documentation/sysfs/endo-TYPE/svc/serial_number [moved from drivers/staging/greybus/Documentation/sysfs/endo-TYPE/SVC/serial_number with 100% similarity]
drivers/staging/greybus/Documentation/sysfs/endo-TYPE/svc/version [moved from drivers/staging/greybus/Documentation/sysfs/endo-TYPE/SVC/version with 100% similarity]
drivers/staging/greybus/endo.c