[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YWwqbmSoLFxiKDTa@kroah.com>
Date: Sun, 17 Oct 2021 15:51:42 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: William Breathitt Gray <vilhelm.gray@...il.com>
Cc: jic23@...nel.org, linux-stm32@...md-mailman.stormreply.com,
kernel@...gutronix.de, a.fatoum@...gutronix.de,
kamel.bouhara@...tlin.com, gwendal@...omium.org,
alexandre.belloni@...tlin.com, david@...hnology.com,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, syednwaris@...il.com,
patrick.havelange@...ensium.com, fabrice.gasnier@...com,
mcoquelin.stm32@...il.com, alexandre.torgue@...com,
o.rempel@...gutronix.de, jarkko.nikula@...ux.intel.com,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [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()?
> +}
> +
Powered by blists - more mailing lists