Thread (16 messages) flat view 16 messages, 4 authors, 2021-10-17

Re: [PATCH v17 5/9] counter: Implement signalZ_action_component_id sysfs attribute

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2021-10-17 13:51:46
Also in: linux-iio, lkml

On Wed, Sep 29, 2021 at 12:16:02PM +0900, William Breathitt Gray wrote:
+static ssize_t counter_comp_id_show(struct device *dev,
+				    struct device_attribute *attr, char *buf)
+{
+	const size_t id = (size_t)to_counter_attribute(attr)->comp.priv;
+
+	return sprintf(buf, "%zu\n", id);
sysfs_emit()?
+}
+

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help