Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3406370rdb; Wed, 27 Dec 2023 06:33:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9uUcqcDiweriiDj1xiD1fQKzOeAsuAeMjkzDBogN1VaX/p8emprQpK32OgGonRSoudHL5 X-Received: by 2002:a50:ed13:0:b0:553:4216:5d6f with SMTP id j19-20020a50ed13000000b0055342165d6fmr5266025eds.20.1703687632391; Wed, 27 Dec 2023 06:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703687632; cv=none; d=google.com; s=arc-20160816; b=xKx5kO6AgW2oX0/STI5+Ap7JoK4WWZUQNXYBZ6WwmQGFmqa2IRBJhVbqGAj6FtbpAN FwvWSxwV2rzabQJp6VmiWLkIyn+aEciQcc9+FbAMSYZi9BvqpO6W6ojFmYPUiB8QPXB9 jZt5emFxErXUaZW45s0zzjEqdl0nr3x9MrZXfkrQ+n4pOUiYlKPne2qXgU4MkQB3EKIt bPjpFB6DnhQ3guO64L2Ye3+dSx8te/muriDuA8cM1knmQA741n5bWTD5H90gP+Tj2Yro 5LxgRMptnQsTuQat1Iv3ciC1UQtD7JDHjd6KKGX3roe9mnwpPlYr3X5jLWJwepH/v/pt oTEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZKI4QgRU6zecef1vuTZpvyidN5YCxCpCLlXHOYjn7eM=; fh=Sju5bPVRJGXwMXkJA/xC5+bMdF0rM0ci0Bl+2ur1DAQ=; b=tWawNImmQG+rIAAzHSpg22vK+DqwVy8hzCnSFckkshDvys1LbeOhZjEQNg6hCapp5l uTcFScI9xnYjpi9QJTIB9NCfoxMkyzN4w0U6hRa1gEbfQd3hBfp8f9a1YO1JaRpDjb/r x4Kj/C59sWrBk63sH1oGg36N6/MJbcZ1mIPZz90tKW75kHfDoDJnQ6q+q4TjeOG2wiu/ fSbJwrZYJvrC4jY4MSacxrbSHV4VM+05AcRKEJd/0tu3sa4sBB6g/CBI+GtFxyfPj/SV OnnoaFhMG26IUJzp+mrbiOQE17NsFoVCCHpvvQUeY/kCGmnpSFRUsR1WArZLQqz3lWdp Lnbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b=RszUSlTc; spf=pass (google.com: domain of linux-kernel+bounces-12051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=subdimension.ro Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n3-20020a5099c3000000b005534be58c54si6328000edb.160.2023.12.27.06.33.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 06:33:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b=RszUSlTc; spf=pass (google.com: domain of linux-kernel+bounces-12051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=subdimension.ro Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 287FB1F21F84 for ; Wed, 27 Dec 2023 14:33:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5CC345034; Wed, 27 Dec 2023 14:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b="RszUSlTc" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.subdimension.ro (skycaves.subdimension.ro [172.104.132.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F421245948; Wed, 27 Dec 2023 14:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=subdimension.ro Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=subdimension.ro Received: from sunspire (unknown [188.24.94.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.subdimension.ro (Postfix) with ESMTPSA id AC12F28B50B; Wed, 27 Dec 2023 14:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdimension.ro; s=skycaves; t=1703687618; bh=nMlEOJ0m80IN9YaTBtl4QoQb2lTcrUVxOt1bWvxMAog=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=RszUSlTcXRuK7P4nTNrIdnBCsYK/SdJut5rEKwJAcm/bvt/FFcI7v238xLzuFXiWL g/unPuzo7RdeUhWHwVspRufDPlCskTCEEhfaFGUc2jMTUZk0cvvHN4WKvauHZGSlcb UlQDf0AscwzEOg7Cfj736anQMeFBu9Q3umLq+KNU= Date: Wed, 27 Dec 2023 16:33:37 +0200 From: Petre Rodan To: Jonathan Cameron Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Klinger , Lars-Peter Clausen , Andy Shevchenko , Angel Iglesias , Matti Vaittinen Subject: Re: [PATCH v2 08/10] iio: pressure: mprls0025pa.c refactor Message-ID: References: <20231224143500.10940-1-petre.rodan@subdimension.ro> <20231224143500.10940-9-petre.rodan@subdimension.ro> <20231226164922.6d7132c1@jic23-huawei> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="e0TuRtiQxORaMcZa" Content-Disposition: inline In-Reply-To: <20231226164922.6d7132c1@jic23-huawei> --e0TuRtiQxORaMcZa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Jonathan, On Tue, Dec 26, 2023 at 04:49:22PM +0000, Jonathan Cameron wrote: > > if (data->irq > 0) { > > ret =3D devm_request_irq(dev, data->irq, mpr_eoc_handler, > > - IRQF_TRIGGER_RISING, client->name, data); > > + IRQF_TRIGGER_RISING, dev_name(dev), data); >=20 > Even though you'll change it again here, would have been nice to have > the alignment fixed in the earlier patch then the code update here. I tried this, but due to the fact that the line has to be right-aligned to column 80 we will still see a whitespace difference due to the length diff = of the name-related argument. > > +++ b/drivers/iio/pressure/mprls0025pa_i2c.c > > + > > +#include >=20 > Why include this? Can't see an IIO specific stuff in here. tried to remove it and CC [M] mprls0025pa_i2c.o mprls0025pa.h:89:63: error: 'IIO_DMA_MINALIGN' undeclared here (not in a fu= nction); did you mean 'ARCH_DMA_MINALIGN'? 89 | u8 buffer[MPR_MEASUREMENT_RD_SIZE] __aligned(IIO_D= MA_MINALIGN); I guess it makes more sense to move it to the .h file, where buffer[] is de= fined. everything else will be fixed as per your feedback. thanks, peter --=20 petre rodan --e0TuRtiQxORaMcZa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE2Ap/wXYVGTXsPl+pzyaZmYROfzAFAmWMNb0ACgkQzyaZmYRO fzAqfxAAg/X+re8H1a+LxaiQf+e+JiiEVRO7dlbRJ7HLpwTk7K9yI1URwlQLKXfn sPUPhBTAjIc7A4Xox/lpO0NyKBHKVMTDAy3oBcINAlnn+5KmMdjKHdyI61Qloy/u ariah7GaV/4P4vOviB7+sQiL3VsdOmp6iw9VaJEeZIiLFEZBq1DSwqcIAK7GWiRP ZbNLX87toqArjNaU8uXJ4XK5Gg8VOdUBS0EpGOaV2pAzVBUgmWgJ3kWm5VT40RjX oQFo+0rXlYnZ5hYngP+j7HmPXFSv2fHBa/UJevm/JZBAz3Be/Oj6Uj2S+vBkT7QY xsWm342gOz+EzG9RTJ44peyrfWVo1LEc9jf0Yi616oVNo3QawOlVBDGrVe1olULf TGeuPaK+FYMEM3RS6aFytBsTeIS3llMMLo75GqkQE6XZkJ913gkk45RLt9i8W1YJ Qo6JxGQkvxMFOlng7QWudOvINixOVdT6rXgsHok6WJUE9GlZpV2fQWGFVc3e3DCg 9uEnFS+cBbFJTnJEfjFgKcE4w6xHJwb5Fa1GOD/uGTHD+0NGhC4wqKGGj0yV1bUf v8DbfT0QQoUGGlqvbs/pJNW2NTlI/Q0mEmz803MI6DXpCiW1W7FqODXNdz+bFHVp q0BN13+Y/nUISPY/r0ErnuLamCVXwQTsbWUFkoyi89pnVyTKnY8= =xAMn -----END PGP SIGNATURE----- --e0TuRtiQxORaMcZa--