lkml.org 
[lkml]   [2021]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v17 5/9] counter: Implement signalZ_action_component_id sysfs attribute
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()?

> +}
> +

\
 
 \ /
  Last update: 2021-10-17 15:52    [W:0.162 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site