summaryrefslogtreecommitdiff
path: root/drivers/counter
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2021-08-27 12:47:48 +0900
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-17 10:53:11 +0100
commit712392f558ef4280b67659fb2d52854dcfc7c8ba (patch)
treea35e7f3b36362a53d2c2653983b29a10b677386a /drivers/counter
parentaaec1a0f76ec25f46bbb17b81487c4b0e1c318c5 (diff)
downloadlwn-712392f558ef4280b67659fb2d52854dcfc7c8ba.tar.gz
lwn-712392f558ef4280b67659fb2d52854dcfc7c8ba.zip
counter: Update counter.h comments to reflect sysfs internalization
The Counter subsystem architecture and driver implementations have changed in order to handle Counter sysfs interactions in a more consistent way. This patch updates the Generic Counter interface header file comments to reflect the changes. Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> Link: https://lore.kernel.org/r/19da8ae0c05381b0967c8a334b67f86b814eb880.1630031207.git.vilhelm.gray@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/counter')
-rw-r--r--drivers/counter/counter-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/counter/counter-core.c b/drivers/counter/counter-core.c
index c533a6ff12cf..3cda2c47bacb 100644
--- a/drivers/counter/counter-core.c
+++ b/drivers/counter/counter-core.c
@@ -38,6 +38,9 @@ static struct bus_type counter_bus_type = {
* This function registers a Counter to the system. A sysfs "counter" directory
* will be created and populated with sysfs attributes correlating with the
* Counter Signals, Synapses, and Counts respectively.
+ *
+ * RETURNS:
+ * 0 on success, negative error number on failure.
*/
int counter_register(struct counter_device *const counter)
{