counter: Implement signalZ_action_component_id sysfs attribute
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 29 Sep 2021 03:16:02 +0000 (12:16 +0900)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 17 Oct 2021 09:54:36 +0000 (10:54 +0100)
commitbb6264a61de84320e77a22b4b8f4babf240608c4
treee3f7f131dedc87caf58ab4498137ea94fde306d9
parent086099893fcebeae50f9020588080de43c82e4c0
counter: Implement signalZ_action_component_id sysfs attribute

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

Cc: Gwendal Grignou <gwendal@chromium.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Link: https://lore.kernel.org/r/a6c81b2f1f5d0b8d59b1ebe4f0fed04914b07547.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