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 58D7DECAAD8 for ; Tue, 20 Sep 2022 16:13:37 +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=5wwJyGqPvBn2A6aoO7LOF6pe+MbqsDUpaB3gSxMMjpA=; b=ot9gQ+ANhpAk9ICasfM7vC33Vf m6Jkjn31Z0XXBjKhuf7VmVUT4r6RLnEmmRqfk1CUETyr3pyOkx0ktstRKoQv0BS+pyYX+VAh9K11y cbjQ9AfTqTcCwk7lZema1kaN8QXKKGL/lEOnlh5q1Uliz1+smXIC/CZKGZseM8eIQbdGWRv+tf3Bu AlhPE+4lkpJpIejHsyQvsw4EmWguHNRXSPoL4YDtMHfmUes7HiCzqjO5hsafxZF5yB9RVhsVoM5TK Zrd2z6MSLHlHHLZjkTIzEkXchxaIuOZZ6CKDPcguafvBp9XeGYJTwz+bxtvi0MmigBj/3GordPBQ1 4tXQwCyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oafrM-0056Yq-2P; Tue, 20 Sep 2022 16:12:32 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oafrH-0056UC-KW; Tue, 20 Sep 2022 16:12:29 +0000 Received: from mercury (dyndsl-091-096-056-222.ewe-ip-backbone.de [91.96.56.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id AD73E660036C; Tue, 20 Sep 2022 17:12:20 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663690340; bh=4pnxuSa/+SQckgAxGLcLTdbVCsMAQVJqmr/cvX1u6IQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m1/nry5hg+gMrp6neyk2AW6Za37ZK5LktEaeIhQQoly6pT0Q/uYxhr1qgyuUnQkt/ uYWe65/RJPiAN3FYfjn9a6f+CEHqAJRmJClV+1ZkVC1J6RZQhF4CVpbGMm1bTmyQD2 VyCdvQzV97qDUEIPJnqwUyy136UVNcCMfnWNhi2zTInsF1A3N9FSho9KDJ8TggT2Zn rxSkWgx6Jop7gewvED1Aerhkdb0WAW1+3M9vzm2JzrrNLwlAdxRuvhUI+6rA6NutZb sdqw2eay3nF07QttAyszuU7MYl47I13kbnj5qh2h/P1j/gxzlOgpqjmqAqBAVG/faJ VXhXH57/sRYng== Received: by mercury (Postfix, from userid 1000) id 9037D10607CF; Tue, 20 Sep 2022 18:12:18 +0200 (CEST) Date: Tue, 20 Sep 2022 18:12:18 +0200 From: Sebastian Reichel To: ChiaEn Wu , broonie@kernel.org, mazziesaccount@gmail.com Cc: pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, jic23@kernel.org, lars@metafoo.de, andriy.shevchenko@linux.intel.com, chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang@richtek.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, szunichen@gmail.com Subject: Re: [PATCH v11 4/8] lib: add linear range index macro Message-ID: <20220920161218.dkkfvfomrruebahi@mercury.elektranox.org> References: <0418eade65d434a25d304eaa804b34f92318be87.1663254344.git.chiaen_wu@richtek.com> MIME-Version: 1.0 In-Reply-To: <0418eade65d434a25d304eaa804b34f92318be87.1663254344.git.chiaen_wu@richtek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_091227_834734_DFAEBFA8 X-CRM114-Status: GOOD ( 18.65 ) 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="===============2874001229767236350==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============2874001229767236350== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l5tnc2jgsehdwtia" Content-Disposition: inline --l5tnc2jgsehdwtia Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Sep 15, 2022 at 05:47:32PM +0800, ChiaEn Wu wrote: > From: ChiaEn Wu >=20 > Add linear_range_idx macro for declaring the linear_range struct simply. >=20 > Reviewed-by: Matti Vaittinen > Signed-off-by: ChiaEn Wu > --- Thanks, queued via immutable branch: The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868: Linux 6.0-rc1 (2022-08-14 15:50:18 -0700) are available in the Git repository at: ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-su= pply.git tags/psy-linear-range-for-v6.1-signed for you to fetch changes up to c2f2e2c3aecdbabf822272a4b6e7d91537633cd9: lib: add linear range index macro (2022-09-16 22:27:19 +0200) ---------------------------------------------------------------- Immutable branch for linear range and power-supply for v6.1 Immutable branch between linear range and power-supply for driver changes in MT6370. Signed-off-by: Sebastian Reichel ---------------------------------------------------------------- ChiaEn Wu (1): lib: add linear range index macro include/linux/linear_range.h | 11 +++++++++++ 1 file changed, 11 insertions(+) -- Sebastian > include/linux/linear_range.h | 11 +++++++++++ > 1 file changed, 11 insertions(+) >=20 > diff --git a/include/linux/linear_range.h b/include/linux/linear_range.h > index fd3d0b3..2e4f4c3 100644 > --- a/include/linux/linear_range.h > +++ b/include/linux/linear_range.h > @@ -26,6 +26,17 @@ struct linear_range { > unsigned int step; > }; > =20 > +#define LINEAR_RANGE(_min, _min_sel, _max_sel, _step) \ > + { \ > + .min =3D _min, \ > + .min_sel =3D _min_sel, \ > + .max_sel =3D _max_sel, \ > + .step =3D _step, \ > + } > + > +#define LINEAR_RANGE_IDX(_idx, _min, _min_sel, _max_sel, _step) \ > + [_idx] =3D LINEAR_RANGE(_min, _min_sel, _max_sel, _step) > + > unsigned int linear_range_values_in_range(const struct linear_range *r); > unsigned int linear_range_values_in_range_array(const struct linear_rang= e *r, > int ranges); > --=20 > 2.7.4 >=20 --l5tnc2jgsehdwtia Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmMp5mIACgkQ2O7X88g7 +poHHQ/9HvToYVOdeiCOww5XunH69+2ib0YVQCxyUaHB5DouNsW21uhKmKI8C3SM znd+W+uaniZH4HWy1VOTPNYb+bFalIFf6ED4cI1ppBn4l2iUlAYbWzIBc7pk5z7C HdUtqzHPkq5jKuosU38jg/1TBlwnXApBwEuWVRBIwtLKm0y80XBBPUQycr+yqlww l02ngiAIu7bxPM37iYWorHFE3UzhoW250pzaMDANsIwz/A+T8PrGa+Br4r5R13G+ u+ZUtbzTjmx8HkLFV++DQ3lfJRPWgWtQms+nrSr3V6YNh9KpOl35x6TXaLLyUICa JStHqjnzrxDWg9vkKHO8FBh2SA8ERt6m0hsLNnGZofbZqot8VqQXz8jPlPFjLw++ ihupgvK2DCSg7ZesmrG4aE2Bt883pue0OVVK5vj+Kvb1QXlwe1QvovMK9jyEe4pd eS+ItZvrJsBKCRGYXmLO06ZiF7VPIlsm+5atVK1oU4qzmf0i+Q44NH8AneNLsTYO pdurTGwKmdwaUqLyxOZnYB2FqUlE98aFLvv1AIl8U/jB8Gg6iwPf8OVEP/Ot7BRW UJzia8CQTINKArz+E9FJm6mkj7GQAmoszMa19j3Bdj+qpSyN9Anjjhoohtz724Ix c9Gjx2otNjq67/kq0nXvg+X5hi3PiCVDr0q6o8TdaVbseaZP/lk= =StQZ -----END PGP SIGNATURE----- --l5tnc2jgsehdwtia-- --===============2874001229767236350== 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 --===============2874001229767236350==--