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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E19A8C433EF for ; Wed, 29 Dec 2021 07:49:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: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-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=elcX/wo4m191vF3rASlDa86HIXonyD1XSIrLTLDFn6s=; b=QGJdXA/KQi96FZZWlg2+TQV/yx um4OdU2oW9xULOkoKguhmkhMal8wGO6Ay4xHqGd0Ck8UpzhQ9yXv+wBsNUi1eDspGB++DBI6RgsHG Kzbdbg5llAFWUMw4twTZmg/bw/aShkDFnmzMp3MlkFRCRLObdlV7LuVU0hrBbHTdy3m+mM5DPJye3 6/rcF+DWltGuJQGYHmglhHq28U78DWC94JdQqCMqBdkoFYNQPYc2vtr5iBpqLiITwP+5js0J5Tvjv y8s9L1QGZ1MZ+xVl6x+Esq7UfLa4UimsYZIKaXqus+A/DVy1GhGOor27aUhihLtDBl8Of2e+A809A B7vK7CXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2ThA-002QIj-Ud; Wed, 29 Dec 2021 07:48:25 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2Th7-002QIG-Fi for linux-arm-kernel@lists.infradead.org; Wed, 29 Dec 2021 07:48:23 +0000 Received: by mail-pl1-x62a.google.com with SMTP id l15so532227pls.7 for ; Tue, 28 Dec 2021 23:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=60Mrnhs4zKvfi4PhPJEk/cjsSt90DKSAIOfk3k8YD0U=; b=DkLkCvyQg2u5LtzafnSnzOfTLv+TQzPw3s8NcChuYtXcAlrbzemm+WbSwVG2a2L2WJ HHxYv8YHHvDdZWUO1lYmkDY1oWmsKCOdJHybGBvApIx9Korscbk64xF6F47+WRSTY5oN NFy/zgvJg6bsAwH8npnsQM2nqYQMcoCuqBqFR1htpb3mqr0VjIv59vgtovde36bHO3FL XzEySZ7YIKW3LL9m9bOVWKlCQHK4vI18LJqbEGLLhqAFlDvdHNIecijoEqA1HVd05xhd UJGxXe8ZJ7V3usrq2TLbcGXck4bZK3qnNUt12cuDXsCjyx9kAXLOgkZrHg5gDrAVRhUV qucw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=60Mrnhs4zKvfi4PhPJEk/cjsSt90DKSAIOfk3k8YD0U=; b=s/gEomsAKpEVCJi848VZtY4A8Weu27FxW/XSDiUj3ETJd9bYuIIkP6jWVrX6t7FOeT +N4dpICCe5vJye/7xT4+ThGSAcUkhrD8CFmz73e0GoFHs71GylaoH2Md08Z5xjS3Vbsf 8veehuUeXmmfQmVHD0jh0YDWCxKbmzDMRHzIR+aNrcC0tSLVlaEhABkDQH5AzEQOuZJs ECUqzbPoOJaJmek8Lcd7JIJwJu/Nq6gZD+/7Kt7pMPKREU0/b0iuFUOjwIM4RQZEuzhM MFKQiLslZOPn0nmAcO8PZilRDP9RyGrU+bnUxyvWVmUIsXTLwyrQhhFUPrJze9pRrtt2 DKzg== X-Gm-Message-State: AOAM533MKs03nH48peoaurRXfNPhM2aU0UHo2mpiy2gTD3DuWH5iWvDa 5AZAIrklg22qeMXcf9wfcII= X-Google-Smtp-Source: ABdhPJwWlIdad0WemQFI47UK8W9kIA4f0axYeH0wlyePkZlpkjkkX+vSsgWz3WV6B8DTHcWQnKxUrg== X-Received: by 2002:a17:90b:314e:: with SMTP id ip14mr11961363pjb.171.1640764100805; Tue, 28 Dec 2021 23:48:20 -0800 (PST) Received: from shinobu (113x37x72x24.ap113.ftth.ucom.ne.jp. [113.37.72.24]) by smtp.gmail.com with ESMTPSA id q16sm19111257pfu.31.2021.12.28.23.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Dec 2021 23:48:20 -0800 (PST) Date: Wed, 29 Dec 2021 16:48:07 +0900 From: William Breathitt Gray To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Lars-Peter Clausen , kernel@pengutronix.de, Jonathan Cameron , linux-iio@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Fabrice Gasnier , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, Benjamin Gaignard , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 11/23] counter: stm32-lptimer-cnt: Convert to counter_priv() wrapper Message-ID: References: <20211227094526.698714-1-u.kleine-koenig@pengutronix.de> <20211227094526.698714-12-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <20211227094526.698714-12-u.kleine-koenig@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211228_234821_579109_AA4C18EA X-CRM114-Status: GOOD ( 18.32 ) 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: multipart/mixed; boundary="===============1877776569906529209==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============1877776569906529209== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3sjde2VhNWvPWw0E" Content-Disposition: inline --3sjde2VhNWvPWw0E Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 27, 2021 at 10:45:14AM +0100, Uwe Kleine-K=C3=B6nig wrote: > This is a straight forward conversion to the new counter_priv() wrapper. >=20 > Signed-off-by: Uwe Kleine-K=C3=B6nig Acked-by: William Breathitt Gray > --- > drivers/counter/stm32-lptimer-cnt.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) >=20 > diff --git a/drivers/counter/stm32-lptimer-cnt.c b/drivers/counter/stm32-= lptimer-cnt.c > index 5168833b1fdf..9cf00e929cc0 100644 > --- a/drivers/counter/stm32-lptimer-cnt.c > +++ b/drivers/counter/stm32-lptimer-cnt.c > @@ -141,7 +141,7 @@ static const enum counter_synapse_action stm32_lptim_= cnt_synapse_actions[] =3D { > static int stm32_lptim_cnt_read(struct counter_device *counter, > struct counter_count *count, u64 *val) > { > - struct stm32_lptim_cnt *const priv =3D counter->priv; > + struct stm32_lptim_cnt *const priv =3D counter_priv(counter); > u32 cnt; > int ret; > =20 > @@ -158,7 +158,7 @@ static int stm32_lptim_cnt_function_read(struct count= er_device *counter, > struct counter_count *count, > enum counter_function *function) > { > - struct stm32_lptim_cnt *const priv =3D counter->priv; > + struct stm32_lptim_cnt *const priv =3D counter_priv(counter); > =20 > if (!priv->quadrature_mode) { > *function =3D COUNTER_FUNCTION_INCREASE; > @@ -177,7 +177,7 @@ static int stm32_lptim_cnt_function_write(struct coun= ter_device *counter, > struct counter_count *count, > enum counter_function function) > { > - struct stm32_lptim_cnt *const priv =3D counter->priv; > + struct stm32_lptim_cnt *const priv =3D counter_priv(counter); > =20 > if (stm32_lptim_is_enabled(priv)) > return -EBUSY; > @@ -200,7 +200,7 @@ static int stm32_lptim_cnt_enable_read(struct counter= _device *counter, > struct counter_count *count, > u8 *enable) > { > - struct stm32_lptim_cnt *const priv =3D counter->priv; > + struct stm32_lptim_cnt *const priv =3D counter_priv(counter); > int ret; > =20 > ret =3D stm32_lptim_is_enabled(priv); > @@ -216,7 +216,7 @@ static int stm32_lptim_cnt_enable_write(struct counte= r_device *counter, > struct counter_count *count, > u8 enable) > { > - struct stm32_lptim_cnt *const priv =3D counter->priv; > + struct stm32_lptim_cnt *const priv =3D counter_priv(counter); > int ret; > =20 > /* Check nobody uses the timer, or already disabled/enabled */ > @@ -241,7 +241,7 @@ static int stm32_lptim_cnt_ceiling_read(struct counte= r_device *counter, > struct counter_count *count, > u64 *ceiling) > { > - struct stm32_lptim_cnt *const priv =3D counter->priv; > + struct stm32_lptim_cnt *const priv =3D counter_priv(counter); > =20 > *ceiling =3D priv->ceiling; > =20 > @@ -252,7 +252,7 @@ static int stm32_lptim_cnt_ceiling_write(struct count= er_device *counter, > struct counter_count *count, > u64 ceiling) > { > - struct stm32_lptim_cnt *const priv =3D counter->priv; > + struct stm32_lptim_cnt *const priv =3D counter_priv(counter); > =20 > if (stm32_lptim_is_enabled(priv)) > return -EBUSY; > @@ -277,7 +277,7 @@ static int stm32_lptim_cnt_action_read(struct counter= _device *counter, > struct counter_synapse *synapse, > enum counter_synapse_action *action) > { > - struct stm32_lptim_cnt *const priv =3D counter->priv; > + struct stm32_lptim_cnt *const priv =3D counter_priv(counter); > enum counter_function function; > int err; > =20 > @@ -321,7 +321,7 @@ static int stm32_lptim_cnt_action_write(struct counte= r_device *counter, > struct counter_synapse *synapse, > enum counter_synapse_action action) > { > - struct stm32_lptim_cnt *const priv =3D counter->priv; > + struct stm32_lptim_cnt *const priv =3D counter_priv(counter); > enum counter_function function; > int err; > =20 > --=20 > 2.33.0 >=20 --3sjde2VhNWvPWw0E Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEk5I4PDJ2w1cDf/bghvpINdm7VJIFAmHMErcACgkQhvpINdm7 VJJPShAAnSc7Y6Dl+F+1U3J9qVAIBj7yeJ1+M0pNs9JPybcNGXfVUDMbLGDaW4b6 bEht207yT7lx+V0MmQG3ITMLOFAK9Ozjn0Ky00vGxJFDDATwe4nzUUtmXfNU2iOG 7i93C/FfJcDb0z0rIUYRbI3g/S1c8BwrTm9FoB/waLGJxnr9oRk/e1HO31mMxzp5 UVY6fyR2RIfHfm0/cZrLDNCMy+WuWyOhbELzGIPkYL94fb1j0Y77Pqae5RWRane7 LnGefg/FWSsnbS51IgR7dH3Fxnw2hl9X9GH2QtD5PgWyzoNKLWgsRqEr6ag6rmrf 4expPSyM3j+CwgEKm5bBiW8Y46FGDmk0eRWXdW0xT4VbCzVdsWaBqUQVqB+KUqwh 10jT4TAnwMPI9FI5+mFvbg5tlUbRAi8WIvu89i8TLyKD9x7Za9fsgdhkV8LBcX2Z P23Zx89AAAZEAxAEx83/5IxSVwQLW8gejLYkEQ7AX1nxVxRRh5mRGeQY5Ntynqbm 92LbkQ0DT5RhSq/pKpHS+1Kd7EVRKbIG5utx6W82h8dkHbWTtEK9C9NcZVo8VJk2 ofk9PDtdEng6DSvtX/GaCvWazK18OUjwa6LxMQw/lOl0zWWvCcsxkx3a9vx7r+7P xpuR6Jt9zI+RlxNIO12QwjMvF7DQK5s5mOP9AWpA8eFf7G/P03M= =EB2O -----END PGP SIGNATURE----- --3sjde2VhNWvPWw0E-- --===============1877776569906529209== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============1877776569906529209==--