From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A034C432BE for ; Sun, 15 Aug 2021 16:55:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E147E60EE2 for ; Sun, 15 Aug 2021 16:55:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230048AbhHOQze (ORCPT ); Sun, 15 Aug 2021 12:55:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:42998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbhHOQzd (ORCPT ); Sun, 15 Aug 2021 12:55:33 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 152A561208; Sun, 15 Aug 2021 16:54:57 +0000 (UTC) Date: Sun, 15 Aug 2021 17:57:56 +0100 From: Jonathan Cameron To: William Breathitt Gray Cc: linux-stm32@st-md-mailman.stormreply.com, kernel@pengutronix.de, a.fatoum@pengutronix.de, kamel.bouhara@bootlin.com, gwendal@chromium.org, alexandre.belloni@bootlin.com, david@lechnology.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, syednwaris@gmail.com, patrick.havelange@essensium.com, fabrice.gasnier@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, o.rempel@pengutronix.de, jarkko.nikula@linux.intel.com, Dan Carpenter Subject: Re: [PATCH v15 09/13] counter: Implement signalZ_action_component_id sysfs attribute Message-ID: <20210815175756.5e627c3d@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Aug 2021 21:37:34 +0900 William Breathitt Gray wrote: > 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 > Cc: Dan Carpenter > Reviewed-by: David Lechner > Signed-off-by: William Breathitt Gray > --- > Contact: linux-iio@vger.kernel.org > diff --git a/drivers/counter/counter-sysfs.c b/drivers/counter/counter-sysfs.c > index dbb507c9da11..11bef9f8190f 100644 > --- a/drivers/counter/counter-sysfs.c > +++ b/drivers/counter/counter-sysfs.c > @@ -393,7 +393,6 @@ static int counter_avail_attr_create(struct device *const dev, > struct counter_attribute *counter_attr; > struct device_attribute *dev_attr; > > - /* Allocate Counter attribute */ Trivial, but this is an unrelated change and shouldn't be in this patch (it's just noise). > counter_attr = devm_kzalloc(dev, sizeof(*counter_attr), GFP_KERNEL); > if (!counter_attr) > return -ENOMEM; > @@ -535,6 +534,46 @@ static int counter_name_attr_create(struct device *const dev, > return 0; > } >