OSDN Git Service

counter: Implement *_component_id sysfs attributes
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 29 Sep 2021 03:16:03 +0000 (12:16 +0900)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 17 Oct 2021 09:54:48 +0000 (10:54 +0100)
commit4bdec61d927b5db25f75fa377504d4e127c3682b
treeb70d819dcd8990dd9ba721e36746ae9e94a03cd0
parentbb6264a61de84320e77a22b4b8f4babf240608c4
counter: Implement *_component_id sysfs attributes

The Generic Counter chrdev interface expects users to supply component
IDs in order to select extensions for requests. In order for users to
know what component ID belongs to which extension this information must
be exposed. The *_component_id attribute provides a way for users to
discover what component ID belongs to which respective extension.

Cc: David Lechner <david@lechnology.com>
Cc: Gwendal Grignou <gwendal@chromium.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Link: https://lore.kernel.org/r/8961a11edbb882fc689e468194f5be75f572443e.1632884256.git.vilhelm.gray@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/ABI/testing/sysfs-bus-counter
drivers/counter/counter-sysfs.c