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=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no 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 0921FC433E0 for ; Thu, 28 May 2020 13:48:10 +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 CBDCB207D3 for ; Thu, 28 May 2020 13:48:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="D8GaGpM+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Y4k39ZFa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBDCB207D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=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=26SZlyKf1vp4t+acIEbpsOr8MePYbB1Gj8KiOWx9jlQ=; b=D8GaGpM+dGAQgw2iazjpD45XI CMF360U7IAWE9Iq4DNMAj9kN4oc8iw6MqPwVg5/4hsT41m0C297P6ZivgRCpsY4vyQ8Sw9/WUjBU4 w6Fs4qHCx/cMDHSsioBNBhsBLZ4PqnywFMkgMYZjFjcqW9TL27hHkSrymhqOdIBsPc3A6EN1SFFmd KSb7IhYJzNE4wp4QFJyN0sCDVT588rvgCzQ19w2q51dDWt4DJe6D8q4KENbmLv7+hkyZZ1qgU2iCI l2HHMSoWIO7+5Jsns+py/okla7B790A3PexOArymyCS5nxteVyPUpe9JKl0vdSMwAqKST8CSUGYb8 ntMblVrlg==; 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 1jeItF-0007Ki-2C; Thu, 28 May 2020 13:48:09 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jeItB-0007KC-L2; Thu, 28 May 2020 13:48:06 +0000 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 900B4207D3; Thu, 28 May 2020 13:48:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590673685; bh=hCc/4WkpOoMnYzAs7vLH2tpFPjfk82hCbKAhbeXkNI0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y4k39ZFaQ41ExRlY1FpyEQJR61aEW8XCAqj3dq0dkZ3PCbvGQ8q/L0EwtUR+BdXqt b+coz6x9QHt1uSD8fvSAyy9Ku/2ke4nRaAGrNDGhCFHwPI7+CSialN6cbAZJ9geC2r dKuhxH11yqWoiaq+GxLW8DRut8Peg/xIRNbM6Fpw= Date: Thu, 28 May 2020 14:48:02 +0100 From: Mark Brown To: Bartosz Golaszewski Subject: Re: [PATCH 1/2] regmap: provide helpers for simple bit operations Message-ID: <20200528134802.GE3606@sirena.org.uk> References: <20200528123459.21168-1-brgl@bgdev.pl> <20200528123459.21168-2-brgl@bgdev.pl> <20200528132938.GC3606@sirena.org.uk> MIME-Version: 1.0 In-Reply-To: X-Cookie: Small is beautiful. User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200528_064805_710725_6D446DC5 X-CRM114-Status: GOOD ( 10.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephane Le Provost , Bartosz Golaszewski , netdev , Sean Wang , Linux Kernel Mailing List , Mark Lee , Fabien Parent , Pedro Tsai , "moderated list:ARM/Mediatek SoC..." , Andrew Perepech , John Crispin , Matthias Brugger , Jakub Kicinski , "David S . Miller" , Linux ARM Content-Type: multipart/mixed; boundary="===============4649264996007943894==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4649264996007943894== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ns7jmDPpOpCD+GE/" Content-Disposition: inline --Ns7jmDPpOpCD+GE/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 28, 2020 at 03:32:40PM +0200, Bartosz Golaszewski wrote: > czw., 28 maj 2020 o 15:29 Mark Brown napisa=C5=82(a): > > Why macros and not static inlines? > The existing regmap_update_bits_*() helpers are macros too, so I tried > to stay consistent. Any reason why they are macros and not static > inlines? If there's none, then why not convert them too? Otherwise > we'd have a static inline expanding a macro which in turn is calling a > function (regmap_update_bits_base()). Not really, I think it was just that they're argument tables. It'd be good to convert them. --Ns7jmDPpOpCD+GE/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl7PwREACgkQJNaLcl1U h9BZlQf/Rnk3QvRXUU9UWRrY62o3tOtAkM+YDOn1qkCahCNlR3xn6spu/jZ2xpm8 wtG0/ml9T9EeXbWZU0n2vWYQowTecwv3zFcQgHRtEaN+Q0F1pZeBoGo7Hazyp47Y 2UI0x5pTwKgEs6xwxQ9hDWy9KhGgLODt7MWUQv8T8m7XxDRmoCh9MbMAiEm2GPLb Vt5FGW0iBTVJh/h0J84HpA1BY1bXPFBwICbqISunBPso9Gj7D5YzmK9iKvz4qW+g eCfgV0eYbRbMCcL7UG9jOWOZxuznG+BfLNmzOLl/eydOppXcHVWhah9Q8Q8xsdqG +R17K+lbB6MGwp7pU0Fr2sp98g43Cw== =Zc21 -----END PGP SIGNATURE----- --Ns7jmDPpOpCD+GE/-- --===============4649264996007943894== 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 --===============4649264996007943894==--