Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1608553pxv; Sat, 10 Jul 2021 09:21:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVQ6lgd9R2kyimRqPWHDkZDoVXBLupF6PWxHZTzXZIlymbx55dq4PeVWk6AHrXSC5jMZQw X-Received: by 2002:a05:6e02:120e:: with SMTP id a14mr5948581ilq.88.1625934099127; Sat, 10 Jul 2021 09:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625934099; cv=none; d=google.com; s=arc-20160816; b=iif5MFlvvZURQdONam7cRhejvCwnQ5tg96j+pY6BVxYNvObzSSoMYz6Z9vD6SlgJzQ dRzr1aRB2h6Kl0zms1bRT+yDZTCNO0MRtcCYLDV5/CdN1KdOg1meeYtgKpgSCOxtzrqc j0hDYZ1MDnGK7FRecAxtY8IquG0tIlKbbhlsMax6YQQce2lMuRsYb3KdQrUuh/dXRLi/ RJ1XpOFdpWAqgsfuMWplb9BjUDx7EX0VZEP8iTu7oU52V8RFhokiV3L5QgJQxP7CkUn6 bDL5cu7TgKFHyDjuPC6yUgCOLeF6eZTP368apUXPsa8D1w5+U2sGnfdiBbsAWSyvpCVh ji3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ojyIBwloAwMN6eYxqUMzZGXJG9Wtq+1qb9RbHTEv0ks=; b=J4c9cIK+PV684yIP+Bfktzgxm8z/RGrNSC0mfElpUQ3DB/8+c9T1enwt+7HC0Nknhg /kAVH251olcraFlMgMbB5uw0thE8m+uuBFOmuJkvJF9RFjZzMA6lnUguvFhbBmWFoPql x0LaDwpiCEr4DDpIEr3lijtBWkNOlRozUkoGX6mV1rhm7UF0F1gOm+nIRGjiYZoAtH6n lAAe0q60fAqvi5Q/DlDSHur4D4d2S1v3MSjVSzladgFOWZgZrcv2iLUtmgGso7w9khbA R1OrQR2aCma7Tp03/WeXWlc/NfdMSv4ZI3nOckHPflsuugyMJfYqCOAHgdQ/Wzy08UNJ Df9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b="D5orH/qm"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si12211639ilo.95.2021.07.10.09.21.25; Sat, 10 Jul 2021 09:21:39 -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; dkim=fail header.i=@lechnology.com header.s=default header.b="D5orH/qm"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229542AbhGJQXj (ORCPT + 99 others); Sat, 10 Jul 2021 12:23:39 -0400 Received: from vern.gendns.com ([98.142.107.122]:58526 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbhGJQXi (ORCPT ); Sat, 10 Jul 2021 12:23:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ojyIBwloAwMN6eYxqUMzZGXJG9Wtq+1qb9RbHTEv0ks=; b=D5orH/qmYnTHFv9PZnhKELEg1v kBSwdw3LQ1+4fczyjKmkhtc4JCNSTCL2CE7/mRck/3Av+HWFn/LDBMCyi8kuEgbqVmPssgmZVEzP6 TRnqYIoi5NdgWVTWn1zOHSgbAmUf8uH4kIdMg6W6r4M0CMx0xsyqrqEZV7k75EanUU+OsdvqfLiY2 qZRCElDSt12DRF3MWNC5XjGMWDCYVaLM3sPDATLhB6zhaL9ZrrH2ZILIxz/rGQwEJhBxv/7vRIq1C iTHzfIHWbxFKN0Nd7Vq7gvZ+FOrrVa48QdCf3RL1poxdeZpSpFLSiUvkzRkrl3hQh5tRamLrEZ5Uk 7jQ10yWg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:46202 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1m2FiV-00GbOP-2s; Sat, 10 Jul 2021 12:20:50 -0400 Subject: Re: [PATCH v12 13/17] counter: Implement signalZ_action_component_id sysfs attribute To: William Breathitt Gray , jic23@kernel.org 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, 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 References: <472b3f1cce1bbfedd2031cdb70d0348f3802e821.1625471640.git.vilhelm.gray@gmail.com> From: David Lechner Message-ID: Date: Sat, 10 Jul 2021 11:20:45 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <472b3f1cce1bbfedd2031cdb70d0348f3802e821.1625471640.git.vilhelm.gray@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/5/21 3:19 AM, 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: David Lechner > Cc: Gwendal Grignou > Cc: Dan Carpenter > Signed-off-by: William Breathitt Gray > --- I like this better than having to scrape the number from the attribute name. Reviewed-by: David Lechner > + /* Allocate Counter attribute */ > + counter_attr = devm_kzalloc(dev, sizeof(*counter_attr), GFP_KERNEL); nit: Comments like this are redundant and can be omitted. All 3 words in the comment are literally (abbreviated) in the next line of code so it doesn't add any new/useful information.