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 85768C4332F for ; Wed, 29 Dec 2021 07:36:46 +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=A/pj8NBIvJHZOh+sCxAlmNZqgczL2dFisG6IvOsGKDg=; b=Rv/9dbeLF/YMgNL6t5PT+xTK+d 63hgraNDFzACqRh5hsDJcyIYmwGENXHJm1gZJ/7hj+t6RTTZBPTHDY9knncEnYFW58RYT0Izi4t5N BUMvvPHDcv0qv+du9rbTJ+wJFE92dMcomr+bhl2Ngwh+yWZ7wzHg2jpA1rvkLAvnpVFCBbYAWJ9Si fVwX5Leo+McG5Wiq/Iaf29UogyxqdVdjpDCWxD4zGiFzWg7THrZ/7C2yeT0G/3O0IPn4pWYmuWCq+ yWeLp0TeXN7WYB8iMX3LWMOwvma3P8koJ08OeSbg8C4pGbWE28/saye5j6ZVVORHBMYl889blb+Xs AE+tEhkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2TUe-002PTJ-GF; Wed, 29 Dec 2021 07:35:28 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2TUb-002PSo-Bo for linux-arm-kernel@lists.infradead.org; Wed, 29 Dec 2021 07:35:26 +0000 Received: by mail-pj1-x1029.google.com with SMTP id c9-20020a17090a1d0900b001b2b54bd6c5so2227568pjd.1 for ; Tue, 28 Dec 2021 23:35:24 -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=CVOIz0TCuoGj6iBnMQu7U/8DnECXErcPvKBFtS77TtY=; b=EOsPSBixH2X/38JLoQGhapJcSz4dp7LHsze/mG1qEqzr+wp0zsz5wXK4q8uuxDMQzu ZBfvV52x+mocCAEm6PXdLga1yQwgZUqqbFylz30tNjftOBwZLcYhTFrJbC49P2FvvDpY LsPxThfoclTJAEboOt90adzGMeP3y5rVrv+DRmy8ZrOReVB7iOueNWZrDCTY26e2Dl+m l5CEhpQTylkya7tyr+y4Ev/9+u79UnejJv2ODy5mB3xHP4JlIdi0HgpWcx4/lhXA2xnB wCk1yYnFkB2gPxt6Iafuqpt2w++gkM/E/tUUEGVPuAJCE5gQwBHK+hkT2G9561XrOFYC SAuA== 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=CVOIz0TCuoGj6iBnMQu7U/8DnECXErcPvKBFtS77TtY=; b=VceU0Oq4RwZ015nxvH5nBQG8wZQT48WcWKxYIO26dUScwcKJkueCXKPDVUkbdcJtKN UKzhVh+gFBcyGC+9nBHhWiWpkByR1UIePd53KYm9BkvBb+8COhgX8yEmsSaNkL/WrNYq WrqN84JFYemVgw6jr+Q7YHvlnOLkB7O58OcgGbKDTXMzKicNK22+yGhl5bqlULmjbTDQ imYpEY9vM5d8rNLcSwMcR/8d8lgMx2/aWoMtjYXS9VgzgmDnYbn55wA69IkWTIllvj1G lpaF3Lcml6tTlNBqz2eRrvJMAsIDslK+FS+a0a/sgE7ZhhPXgqUJQTy0OR6EtyQalTfn UqFQ== X-Gm-Message-State: AOAM531cUq6Wjb7/jN5Cbu3p0Gya/HQvR+j/3xFraDzimlT6n8H1Gv+A CO7OSQ0ZOO+ycGIYmh6nJok= X-Google-Smtp-Source: ABdhPJxPcwClLMvLJFjy34FTF6R4jPFWyHA71hFLd5zV41d2FdjsPUjUyqJBdus0+y+gKQaiqBboHw== X-Received: by 2002:a17:902:9894:b0:149:8a72:98ae with SMTP id s20-20020a170902989400b001498a7298aemr9650995plp.132.1640763324329; Tue, 28 Dec 2021 23:35:24 -0800 (PST) Received: from shinobu (113x37x72x24.ap113.ftth.ucom.ne.jp. [113.37.72.24]) by smtp.gmail.com with ESMTPSA id g19sm16163044pfv.19.2021.12.28.23.35.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Dec 2021 23:35:23 -0800 (PST) Date: Wed, 29 Dec 2021 16:35:17 +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, Kamel Bouhara , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 07/23] counter: microchip-tcb-capture: Convert to counter_priv() wrapper Message-ID: References: <20211227094526.698714-1-u.kleine-koenig@pengutronix.de> <20211227094526.698714-8-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <20211227094526.698714-8-u.kleine-koenig@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211228_233525_460127_2E4F7B93 X-CRM114-Status: GOOD ( 18.73 ) 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="===============7687237670373415446==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7687237670373415446== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Mjc+xZwTVwGHVxqI" Content-Disposition: inline --Mjc+xZwTVwGHVxqI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 27, 2021 at 10:45:10AM +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/microchip-tcb-capture.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) >=20 > diff --git a/drivers/counter/microchip-tcb-capture.c b/drivers/counter/mi= crochip-tcb-capture.c > index bb69f2e0ba93..1b56b7444668 100644 > --- a/drivers/counter/microchip-tcb-capture.c > +++ b/drivers/counter/microchip-tcb-capture.c > @@ -72,7 +72,7 @@ static int mchp_tc_count_function_read(struct counter_d= evice *counter, > struct counter_count *count, > enum counter_function *function) > { > - struct mchp_tc_data *const priv =3D counter->priv; > + struct mchp_tc_data *const priv =3D counter_priv(counter); > =20 > if (priv->qdec_mode) > *function =3D COUNTER_FUNCTION_QUADRATURE_X4; > @@ -86,7 +86,7 @@ static int mchp_tc_count_function_write(struct counter_= device *counter, > struct counter_count *count, > enum counter_function function) > { > - struct mchp_tc_data *const priv =3D counter->priv; > + struct mchp_tc_data *const priv =3D counter_priv(counter); > u32 bmr, cmr; > =20 > regmap_read(priv->regmap, ATMEL_TC_BMR, &bmr); > @@ -148,7 +148,7 @@ static int mchp_tc_count_signal_read(struct counter_d= evice *counter, > struct counter_signal *signal, > enum counter_signal_level *lvl) > { > - struct mchp_tc_data *const priv =3D counter->priv; > + struct mchp_tc_data *const priv =3D counter_priv(counter); > bool sigstatus; > u32 sr; > =20 > @@ -169,7 +169,7 @@ static int mchp_tc_count_action_read(struct counter_d= evice *counter, > struct counter_synapse *synapse, > enum counter_synapse_action *action) > { > - struct mchp_tc_data *const priv =3D counter->priv; > + struct mchp_tc_data *const priv =3D counter_priv(counter); > u32 cmr; > =20 > regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr); > @@ -197,7 +197,7 @@ static int mchp_tc_count_action_write(struct counter_= device *counter, > struct counter_synapse *synapse, > enum counter_synapse_action action) > { > - struct mchp_tc_data *const priv =3D counter->priv; > + struct mchp_tc_data *const priv =3D counter_priv(counter); > u32 edge =3D ATMEL_TC_ETRGEDG_NONE; > =20 > /* QDEC mode is rising edge only */ > @@ -230,7 +230,7 @@ static int mchp_tc_count_action_write(struct counter_= device *counter, > static int mchp_tc_count_read(struct counter_device *counter, > struct counter_count *count, u64 *val) > { > - struct mchp_tc_data *const priv =3D counter->priv; > + struct mchp_tc_data *const priv =3D counter_priv(counter); > u32 cnt; > =20 > regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CV), &cnt); > --=20 > 2.33.0 >=20 --Mjc+xZwTVwGHVxqI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEk5I4PDJ2w1cDf/bghvpINdm7VJIFAmHMD7UACgkQhvpINdm7 VJIV+g/8CeqtAG5oJbZrQz5K0nH0VFWgH9+4eMBGEXzttztypiyLm4nSrzi4Zfbn DVz1302MqsIpXufbOwZMmfzhGRJ4220Mk3+BkAxserMHCeioaCVWgoIACBnF8Oz2 TOrmBcQg0fJhjAtywwi+AE5LJzI9sqG8fB/G3KFn09mwqfJqS7sFHVtc0BbCiwSh lNcQ8ct4XdQwiD4UTw4p36RDKXGkPUq6j47RW0B8t5qc9sl0+18bIf+K74/RLzWU IAFQP9Aes5opx+UXrC1V+FZ6kJ/xhXG99bZWrVkFdY7QlSL3b+8Z+h298UJGfaBu zvpBZ6k0MviKBhBU8Y0SzIjVfTGpniiXlmkoyCVu/ZjP02d7rzUKEGC865vtezuB QFRbiQE0et3MJAXKiWVhqckUBsh6Lmmgrc+ewGkOvswhLGhufy1PNRv6T+7S+DWe 8G6CLqPAUVlBivW35tx98xPVIbUl3xqZKnElmO4bLmh6IGsiXefqgVZV3h0KIdBg 8dLXmok2BhtWN5Kf6KqdTFcYTBKdq81iEganJRPnBfyofTSZnFL6IiGJzJlXfaCY DKr/dTPRRw6v+8PhqcXRcDbXaUP9oRDwz2pxKUH3h9yblC7M3NfLnHryZLe/eChr 1k9fwEFVGRdWdorkOK0zrK+EtIrmUxYqI7ywr4JYhmKvMCDTKPU= =Dl0a -----END PGP SIGNATURE----- --Mjc+xZwTVwGHVxqI-- --===============7687237670373415446== 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 --===============7687237670373415446==--