Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1103195pxy; Sun, 15 Aug 2021 09:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4ofbME2Uje/xpjj80SpXg/vKNGuErRoT123ShACiuu+tNYBOUg6VXsobHZ/HIsNSLCeqe X-Received: by 2002:a05:6e02:130e:: with SMTP id g14mr8894032ilr.81.1629046555075; Sun, 15 Aug 2021 09:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629046555; cv=none; d=google.com; s=arc-20160816; b=UW4bXGBvtletvopcWcyzhWF8Jcr7X0ehHiSWbrWd/GJmPmQNRuA/8jgppax/6nXWcy DdzEco3b0kLzUAebKvlefHHOS+tQcrec4ykOjdc3x4HkobrCzSMDA8cJoRP4B35RsPbc 01dLc9oc6GYNjXSxfjYKAIbUFm6M74pofYR+VktCTyWLxj9++2HcUl9uedZFTIRbsv0d b+TLd7aFEtr3SKKksjKXikuqaScKXFAg5g2aQRZKOgafaWXUr5zmxG8qMwNTqad9O6vW nn84rgBo0RKdbLbX5hfkh1n0N+0ae0JVqZzanPo/pVnMKaYpXaRkqxZUUeI2BM7K5mll 0sUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=FVM+U6IdRLnGSjBUJxdEULafk3Ibe4JsAXOmd239D8k=; b=Xc5ObIp70Zd8WLi+ihfphu/HNGv/OnXmmvjlBVxD6qpXTfwWl/DzjzdmSU6gUnB5YF xWAXf4MLeq/vtia4eMdrVmeutjCMNCokrbfs83AeHjfp138uUTAbxKLLRgkVc5RAOLiA Idpv+Nw8r0yIIqiCMUxqxjA+1/hP4q1x9PrGA/rkH+O2oIZYP7Z6DB+/odJpXaWn7b35 Q1tiFGcMgO69+3AI1z/gBgy70HqK8u1Y+itXf1IJEok2R6vR+HXiKmFGGa8rRiHX4QUa EpU429/uR6tM9Z7U8CC7viuZpHLSakhP9X1ykaG78VUZvkSfPL9dwUOSKCimcT2RGkVR LJEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si9429563iol.81.2021.08.15.09.55.42; Sun, 15 Aug 2021 09:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbhHOQzd (ORCPT + 99 others); Sun, 15 Aug 2021 12:55:33 -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; > } >