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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE939C433FE for ; Sun, 17 Oct 2021 13:51:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C729861054 for ; Sun, 17 Oct 2021 13:51:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343785AbhJQNxz (ORCPT ); Sun, 17 Oct 2021 09:53:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:57770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242336AbhJQNxy (ORCPT ); Sun, 17 Oct 2021 09:53:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D46461027; Sun, 17 Oct 2021 13:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634478704; bh=wJArX8ewuoelcOM089foeU0E8LxBl4M7aRz9fvqueNw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BhXRwrmqyiUM3WRs8L1qda973z8Z3zVvIVtVapURG6io1+iA1xxt7uNRbZLGNcEzU yAcnJtEl3vN9HOOWs8UEYWCEHF+oM0roScDnXQQS2jrodW3uN0dCdvXh6zxd3OOPuE c3pXxNuNi35IWUHhgfdE54ORfkgHC8NyDu5cPcF0= Date: Sun, 17 Oct 2021 15:51:42 +0200 From: Greg KH To: William Breathitt Gray Cc: jic23@kernel.org, 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 v17 5/9] counter: Implement signalZ_action_component_id sysfs attribute Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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()? > +} > + 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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62F5AC433F5 for ; Sun, 17 Oct 2021 13:53:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0F6FE60FE3 for ; Sun, 17 Oct 2021 13:53:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0F6FE60FE3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BzUSQHCD6D68BkRlNWbKkdEcFLgrBzxnDXv2ZzfqDu8=; b=OSDxd9kXCTAP+B UxBUubktNTWAWMo8J3q2LE3KM4zLiaQ/Fp66gw/RhJJWsEQeqDIF4a9FccB9aZg8Sxa0P4Yzrbdt0 dO9S3zdNvMvJzR/0UiawRiqAW/caSp54fmw0T3DLKJTWaiAIu+WLunl762Twp2VAObEFhVwqJs+eN /i2XCIk5eEPFTWH3zSZeDXKjfxbAwyAt//G18QmduOwyJX8uFKfq+yLTlJul1c+WNctVCEYYQGn7Q YqsPCcxAJBO+6LeM+oSidOyv/IBKBKjRUgiX8c8jyFYh4HeKi6bWzV1WeY+OGamP3pM4eZvaS7Jj0 9swx6IVdS7VXsvQ4uwCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc6Zs-00CgqQ-Bg; Sun, 17 Oct 2021 13:51:52 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc6Zl-00Cgnu-Ar for linux-arm-kernel@lists.infradead.org; Sun, 17 Oct 2021 13:51:49 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D46461027; Sun, 17 Oct 2021 13:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634478704; bh=wJArX8ewuoelcOM089foeU0E8LxBl4M7aRz9fvqueNw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BhXRwrmqyiUM3WRs8L1qda973z8Z3zVvIVtVapURG6io1+iA1xxt7uNRbZLGNcEzU yAcnJtEl3vN9HOOWs8UEYWCEHF+oM0roScDnXQQS2jrodW3uN0dCdvXh6zxd3OOPuE c3pXxNuNi35IWUHhgfdE54ORfkgHC8NyDu5cPcF0= Date: Sun, 17 Oct 2021 15:51:42 +0200 From: Greg KH To: William Breathitt Gray Cc: jic23@kernel.org, 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 v17 5/9] counter: Implement signalZ_action_component_id sysfs attribute Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211017_065145_421402_E37A3D50 X-CRM114-Status: UNSURE ( 6.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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()? > +} > + _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel