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 22C10C433EF for ; Wed, 29 Dec 2021 07:50:15 +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=bkPDacpHjCvyL64GGv5n65t9PLl4FFaK/gYmWJMAlL0=; b=3oOi+Gzoip6N2z6qrDsmMccvHp 9fcIwGeUtEcCxztne8z/CIe5kuaQ/HDABEHt9ayYBRQk0qAoE+vSeDZ4wCeeE6R8aVjKlgD6KOAmf cpMiMX3TD1RJ7S0NJTq/DaMun1rR34u/ijxjFzfLJbm1nLzloQwsiNXagZUc/zyc9WGWnYYOzW+e9 pFJpl1jfJYkkLLdnHEwvi7Q8Y1KUX6edpnKT/LAKwJ2820gIV5S1jZN/fftyHAMXK8Zw8IuMAYoiS DVkMZ8thfE8bRM8Hf0qeM5r1iTNohgTkD64i9ASMbgUDgFjzqOFAdvcBywqxeV4HxLzyxVfpxLqzF IU9sXWPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2Tht-002QSI-FW; Wed, 29 Dec 2021 07:49:09 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2Thq-002QRS-70 for linux-arm-kernel@lists.infradead.org; Wed, 29 Dec 2021 07:49:07 +0000 Received: by mail-pf1-x435.google.com with SMTP id u20so18131493pfi.12 for ; Tue, 28 Dec 2021 23:49:05 -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=ySGrDwcfAoHKrcHz2RP9d9116MO2XUcrj9F6W+JdmuE=; b=PYDlKAMHbsleZ0YFDTS2lp2dhKUeMEYeP8mIK34yNzzt3jVqpkwZpisA6RJI6X+L2U hx2PhLmZ34nFoN3DuWoSRBLC9HEO3aATDHFtZA4b366eAJ+PUctjhapKmlEVduchQ0z4 GKlOQhh3d6ju+9uamcmyYA1OkayTXPst4o6e9TXsdxd9VoCyohhNO+JJfjIVObzXSR+G RRTtO2npg/QY9mRc4z8a6D1EhCLtSI6Mp0LLdjafRTmkesxuGAluBQA4RGxoPkOOyUz4 6vnpeZauNDe7yn7QXjxpd52oDxDyVocoKIgG6BcLNG5TR++A7MwAPaYD+HklPiM/KiLT 9VrQ== 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=ySGrDwcfAoHKrcHz2RP9d9116MO2XUcrj9F6W+JdmuE=; b=IheELN8ExD3THLt13YaYNSpse+tBp0qSLRUnQNwRcRAz1w/1qBbDGghEWSxXk8dGii GITrHfnC6E5p8qNXSYx1oKP0qliRDlEvgXLI+qcKiBU67WVNiYVil83rFB7OB5l1Hmpf je9kRCu4EX23dkE6yBVKMZX+3AhZjB0iwZ3nNrbaBv0THRxXcnw88GQv7ArjjZ/Ojl07 M53Bcgf+/t3gWpjZDkLLsLRUjraN9pIagyhh6oOOA7PHNrfWvhhEqy7zwSFTlKnIqpB9 +RtTyoJEgmpSb7xpMvGr/Y5ccf4ZVwWpKZ4FB6Gk6JlHcQ59xCCyq/T8aMmgo0zpIhJP ZIKA== X-Gm-Message-State: AOAM533bLAsoslRWtVHJUVwN/WHwBUoIXvXRE12VR+dK1Pd5dPZIWONI Ss90Zu6mwiTyY5Fdeu8+wF0= X-Google-Smtp-Source: ABdhPJw/iUNmBjKeK0BjIZk/GpK3pd7105QLEssYSNrZYbk2YemKxVHsOMRZs/XRLRhE1d7u+fSVeA== X-Received: by 2002:a63:8a4b:: with SMTP id y72mr22500409pgd.1.1640764145507; Tue, 28 Dec 2021 23:49:05 -0800 (PST) Received: from shinobu (113x37x72x24.ap113.ftth.ucom.ne.jp. [113.37.72.24]) by smtp.gmail.com with ESMTPSA id e16sm21802560pfd.38.2021.12.28.23.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Dec 2021 23:49:04 -0800 (PST) Date: Wed, 29 Dec 2021 16:48:47 +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 12/23] counter: stm32-timer-cnt: Convert to counter_priv() wrapper Message-ID: References: <20211227094526.698714-1-u.kleine-koenig@pengutronix.de> <20211227094526.698714-13-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <20211227094526.698714-13-u.kleine-koenig@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211228_234906_291270_D6350ACE 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="===============4587988118007977588==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4587988118007977588== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0hvMYwsk329X9REM" Content-Disposition: inline --0hvMYwsk329X9REM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 27, 2021 at 10:45:15AM +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-timer-cnt.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) >=20 > diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/counter/stm32-ti= mer-cnt.c > index 0546e932db0c..4b05b198a8d8 100644 > --- a/drivers/counter/stm32-timer-cnt.c > +++ b/drivers/counter/stm32-timer-cnt.c > @@ -47,7 +47,7 @@ static const enum counter_function stm32_count_function= s[] =3D { > static int stm32_count_read(struct counter_device *counter, > struct counter_count *count, u64 *val) > { > - struct stm32_timer_cnt *const priv =3D counter->priv; > + struct stm32_timer_cnt *const priv =3D counter_priv(counter); > u32 cnt; > =20 > regmap_read(priv->regmap, TIM_CNT, &cnt); > @@ -59,7 +59,7 @@ static int stm32_count_read(struct counter_device *coun= ter, > static int stm32_count_write(struct counter_device *counter, > struct counter_count *count, const u64 val) > { > - struct stm32_timer_cnt *const priv =3D counter->priv; > + struct stm32_timer_cnt *const priv =3D counter_priv(counter); > u32 ceiling; > =20 > regmap_read(priv->regmap, TIM_ARR, &ceiling); > @@ -73,7 +73,7 @@ static int stm32_count_function_read(struct counter_dev= ice *counter, > struct counter_count *count, > enum counter_function *function) > { > - struct stm32_timer_cnt *const priv =3D counter->priv; > + struct stm32_timer_cnt *const priv =3D counter_priv(counter); > u32 smcr; > =20 > regmap_read(priv->regmap, TIM_SMCR, &smcr); > @@ -100,7 +100,7 @@ static int stm32_count_function_write(struct counter_= device *counter, > struct counter_count *count, > enum counter_function function) > { > - struct stm32_timer_cnt *const priv =3D counter->priv; > + struct stm32_timer_cnt *const priv =3D counter_priv(counter); > u32 cr1, sms; > =20 > switch (function) { > @@ -140,7 +140,7 @@ static int stm32_count_direction_read(struct counter_= device *counter, > struct counter_count *count, > enum counter_count_direction *direction) > { > - struct stm32_timer_cnt *const priv =3D counter->priv; > + struct stm32_timer_cnt *const priv =3D counter_priv(counter); > u32 cr1; > =20 > regmap_read(priv->regmap, TIM_CR1, &cr1); > @@ -153,7 +153,7 @@ static int stm32_count_direction_read(struct counter_= device *counter, > static int stm32_count_ceiling_read(struct counter_device *counter, > struct counter_count *count, u64 *ceiling) > { > - struct stm32_timer_cnt *const priv =3D counter->priv; > + struct stm32_timer_cnt *const priv =3D counter_priv(counter); > u32 arr; > =20 > regmap_read(priv->regmap, TIM_ARR, &arr); > @@ -166,7 +166,7 @@ static int stm32_count_ceiling_read(struct counter_de= vice *counter, > static int stm32_count_ceiling_write(struct counter_device *counter, > struct counter_count *count, u64 ceiling) > { > - struct stm32_timer_cnt *const priv =3D counter->priv; > + struct stm32_timer_cnt *const priv =3D counter_priv(counter); > =20 > if (ceiling > priv->max_arr) > return -ERANGE; > @@ -181,7 +181,7 @@ static int stm32_count_ceiling_write(struct counter_d= evice *counter, > static int stm32_count_enable_read(struct counter_device *counter, > struct counter_count *count, u8 *enable) > { > - struct stm32_timer_cnt *const priv =3D counter->priv; > + struct stm32_timer_cnt *const priv =3D counter_priv(counter); > u32 cr1; > =20 > regmap_read(priv->regmap, TIM_CR1, &cr1); > @@ -194,7 +194,7 @@ static int stm32_count_enable_read(struct counter_dev= ice *counter, > static int stm32_count_enable_write(struct counter_device *counter, > struct counter_count *count, u8 enable) > { > - struct stm32_timer_cnt *const priv =3D counter->priv; > + struct stm32_timer_cnt *const priv =3D counter_priv(counter); > u32 cr1; > =20 > if (enable) { > --=20 > 2.33.0 >=20 --0hvMYwsk329X9REM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEk5I4PDJ2w1cDf/bghvpINdm7VJIFAmHMEt8ACgkQhvpINdm7 VJKc3Q//e00ottRDe0JDSIqYtZ73xj5VtyGoSP4JIX1AegUNR3k1Vr6E4GXAm1M1 0JV8JmTevetmeFosjXYI1tI2ojZjAh+TNfpdw+o661KMqxqJ25jcWPHNmCgi3W8K yGSxf49EQf5oIpoUJlAPM1Ged4s4ZgGd3UiaGrdJrAlA/Hyb2tCCrbMJ1ESOy2wt vgXvgN4YOWyptlo6zkvsQLLit1Ydh+862idWGnFOxxBsouXR07iN166VTv9P8oxb NMGIbKlFuKliFzHnJkhqJDY3iIdomyrYMvQz/sVPk8f1ApkcSXW6rH5k7S8Yf8db Y94F4g7Elg5UiwPcGd5feobaZ5gRO09XhQ+gOXDw+E4WKRR0dX+Z6SprA8xupRoB C1wDsLP9m6uH4VxSB1uhd3PubPYO+TAH3eR1pI/gUivWhSA19fttH+q2XyBQUbOt sj3saJeE9JtWJ4k+arXozFA9CTVF7WtD1ilvrefQgDl64kSSMxwMVQflD/xtPWV8 Wbl2oXjeGTilK8EKAWJ2NXPF614i4Z08dkhOgfigk3yh7UasKSCHpvgNDkbSplYp 3AMbhi5lIWqqKRibDVh2RAgyjKHRk6+pf7mQo2FzeFRIrn2JzcLvtp2nL1430A6V sbrmf1bCVGCGHqZZWdMjpsn93GmZ6vobDqZbsp2pjJGuDlce4BU= =LvJT -----END PGP SIGNATURE----- --0hvMYwsk329X9REM-- --===============4587988118007977588== 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 --===============4587988118007977588==--