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 X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D558C2BA16 for ; Sun, 5 Apr 2020 03:33:40 +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 318572078C for ; Sun, 5 Apr 2020 03:33:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="A4K4fduv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 318572078C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject: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=soQpzaZc42pq9PxTwGPSf9JXE3mTQaR1FJgFYzwVNcI=; b=A4K4fduv3rwfM/FsiuVIukP6X 79PbiLg6C9nvwK3keZr1AkXv4PurTDxxPHtOW/Ey9FHjqb6Zd1T1jFlHu9e2TsbhyaY+lkfp4thg7 Ex4xoTuxhyZ/Az5w8Y6kuIq+J9p/V+aYh+UUj5wSfrKN76M3ff8zqAqrKJNwrN64wq6lEY25Fi7iu 4l8JElqri7mahEnxH25780sNfc+2nPUXdoe0/Kmua/nxGbZlkv/uRSxxqqPt06yrQPt2djciI0e/j vbCm+SmnXlOI1xnIdSS5o15z2MH6w8vgreH20LgF5l7rEHTVDePHe+xiHpa86f+KtGwBvTH64Zr66 PmxiM/8vg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jKw2L-0005TC-QT; Sun, 05 Apr 2020 03:33:29 +0000 Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jKw2C-0005KV-9T; Sun, 05 Apr 2020 03:33:21 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 7BC7E294041 Received: by earth.universe (Postfix, from userid 1000) id 2870B3C082A; Sun, 5 Apr 2020 05:33:16 +0200 (CEST) Date: Sun, 5 Apr 2020 05:33:16 +0200 From: Sebastian Reichel To: Matti Vaittinen Subject: Re: [PATCH v8 05/10] power: supply: bd70528: rename linear_range to avoid collision Message-ID: <20200405033316.bhafrtorxzwev24z@earth.universe> References: <7a6727838bcc93f443c993d91d21d9306dee22be.1585902279.git.matti.vaittinen@fi.rohmeurope.com> MIME-Version: 1.0 In-Reply-To: <7a6727838bcc93f443c993d91d21d9306dee22be.1585902279.git.matti.vaittinen@fi.rohmeurope.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200404_203320_591926_E6457092 X-CRM114-Status: GOOD ( 21.32 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andrei Stefanescu , Heiko Stuebner , "Rafael J. Wysocki" , Tony Lindgren , Linus Walleij , Brendan Higgins , Bjorn Andersson , Andreas Kemnade , "Angelo G. Del Regno" , Hsin-Hsiung Wang , linux-samsung-soc@vger.kernel.org, linux-omap@vger.kernel.org, Axel Lin , Gregory CLEMENT , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Markus Reichl , Bartosz Golaszewski , Chen-Yu Tsai , Andy Gross , markus.laine@fi.rohmeurope.com, Adam Thomson , devicetree@vger.kernel.org, Charles Keepax , mazziesaccount@gmail.com, linux-arm-msm@vger.kernel.org, Richard Fitzgerald , Mark Brown , linux-mediatek@lists.infradead.org, Matthias Brugger , Thomas Gleixner , Andy Shevchenko , linux-arm-kernel@lists.infradead.org, Support Opensource , Baolin Wang , Sangbeom Kim , Greg Kroah-Hartman , linux-pm@vger.kernel.org, Randy Dunlap , Liam Girdwood , linux-kernel@vger.kernel.org, mikko.mutanen@fi.rohmeurope.com, Vinod Koul , Rob Herring , patches@opensource.cirrus.com Content-Type: multipart/mixed; boundary="===============6271761130709734223==" Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org --===============6271761130709734223== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jokps3gh77qfp23l" Content-Disposition: inline --jokps3gh77qfp23l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Apr 03, 2020 at 11:46:30AM +0300, Matti Vaittinen wrote: > Follow-up patches in this series will add a generic struct > linear_range. Rename bd70528 internal struct to avoid collision. >=20 > Signed-off-by: Matti Vaittinen > --- Actually the patch is before this one. But since the include is not yet used in the bd70528 charger driver, it should be ok to do it in this order. Reviewed-by: Sebastian Reichel -- Sebastian >=20 > No changes since v7 >=20 > drivers/power/supply/bd70528-charger.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/drivers/power/supply/bd70528-charger.c b/drivers/power/suppl= y/bd70528-charger.c > index b8e1ec106627..3b820110ecfa 100644 > --- a/drivers/power/supply/bd70528-charger.c > +++ b/drivers/power/supply/bd70528-charger.c > @@ -335,14 +335,14 @@ static int bd70528_get_present(struct bd70528_psy *= bdpsy, int *val) > return 0; > } > =20 > -struct linear_range { > +struct bd70528_linear_range { > int min; > int step; > int vals; > int low_sel; > }; > =20 > -static const struct linear_range current_limit_ranges[] =3D { > +static const struct bd70528_linear_range current_limit_ranges[] =3D { > { > .min =3D 5, > .step =3D 1, > @@ -374,7 +374,7 @@ static const struct linear_range current_limit_ranges= [] =3D { > * voltage for low temperatures. The driver currently only reads > * the charge current at room temperature. We do set both though. > */ > -static const struct linear_range warm_charge_curr[] =3D { > +static const struct bd70528_linear_range warm_charge_curr[] =3D { > { > .min =3D 10, > .step =3D 10, > @@ -398,7 +398,7 @@ static const struct linear_range warm_charge_curr[] = =3D { > #define MAX_WARM_CHG_CURR_SEL 0x1f > #define MIN_CHG_CURR_SEL 0x0 > =20 > -static int find_value_for_selector_low(const struct linear_range *r, > +static int find_value_for_selector_low(const struct bd70528_linear_range= *r, > int selectors, unsigned int sel, > unsigned int *val) > { > @@ -420,7 +420,7 @@ static int find_value_for_selector_low(const struct l= inear_range *r, > * I guess it is enough if we use voltage/current which is closest (belo= w) > * the requested? > */ > -static int find_selector_for_value_low(const struct linear_range *r, > +static int find_selector_for_value_low(const struct bd70528_linear_range= *r, > int selectors, unsigned int val, > unsigned int *sel, bool *found) > { > --=20 > 2.21.0 >=20 >=20 > --=20 > Matti Vaittinen, Linux device drivers > ROHM Semiconductors, Finland SWDC > Kiviharjunlenkki 1E > 90220 OULU > FINLAND >=20 > ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ > Simon says - in Latin please. > ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ > Thanks to Simon Glass for the translation =3D]=20 --jokps3gh77qfp23l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl6JUXsACgkQ2O7X88g7 +pqxxA//V7QS9O1yUBw3gvnZTvoRJYIHeFHiDwBYFW9+Ub4CX5kvgBYR4cotvsak PzZv8g/BVF/bE2xqKmc64QKeerw0gtj6wH1IVp/9qpD2EZa6p2et0Ga39nWX4jQl jbAWyknii9x6/s6xd233QrXR65Uh8gG7Aiwwmpftngra/bMwchiuCNO1fsAIuFpR NOqbYRYMie7iICwFKRd54fmL9jHtWoxoKmO/+E4qVVCE/bV8iWVUeQwVvhri55wv aIqh3pYgI45ZJYkLrucgI3wnodLb93djJFmbfqU3YwjXPzpi1UNV+icNUfJgTJH7 EcNnn7QJxVOBMU0EHyUeC/b19eNEnO06AphyMLjdR2qTnsJnTAT/C2DX0txSUtmR N0HY+B8UZGbWcpYsf8H478PU1X2cWdVJ6jWrJh711Y+Xf/ply3AFPMUN+uj2fOYw 4DUbsgLTNOwQtg/w7AfM7b8nfxvE+ElWfDIfZ/zN4gSbQM8CpGUinzB0CZGH3Z2s lQyHenCKjVwmt0zSn6Lby66HuEK0FOpp/2lX0jHwSGV2Mi87llLBDrbOf5eHfuXS dlgVPiZ83KJFLJiQUJWFsDq07wT2c7SV4k9BIPVFCmBo6TnMjfyWDd4jA1Q113dT YXRBYBahJusdBFRNB9TwKQL4dOKXYvmfUe39q3QbPUTxN2S2p7g= =0+Ht -----END PGP SIGNATURE----- --jokps3gh77qfp23l-- --===============6271761130709734223== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek --===============6271761130709734223==--