Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5039047rdb; Sat, 30 Dec 2023 03:35:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnKrXzDdAAk/ZdvePRZC6si/fr4Sl3fSFSYAH5gx2n6go5g2lBxG5N1ea4rgy105kLrIGF X-Received: by 2002:a50:ab16:0:b0:553:32ee:2735 with SMTP id s22-20020a50ab16000000b0055332ee2735mr8433997edc.65.1703936101161; Sat, 30 Dec 2023 03:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703936101; cv=none; d=google.com; s=arc-20160816; b=fLv2cJpl2sCsenCLq2wLA85jKh+WmWttBfjU633dydXtTLjfT1qvI5oPdN9o9nfC4a luKg3OUDNeSoYU094wkbmQ2cG+jUIPYaltv1MbdwfizDD6IGP1E6TsmrI3RBHiL0oaq9 C/6oGVCGb6hhk33xg5TLHfdjpTEkFb9j25/ZvgB8J+x4RDeZJkoNM7CltY/ObUJn7nX2 MMRJWCerW5Tw6OalD1AnUY30UPQ+D6cc8ncjt5rYVf+JKrqTBSGIecQ20duylXfoUzjc fSC44F+waJKz2H8bkiQ7dmHyR/epLzw7UDwd3ZMmmJYRpt48uOYD/KghB4vApkueWTEe RYkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=JThSOofs9B5J/4Uqs0rIbhVOR0hdMUxV2ozQHL8lVxo=; fh=TEMBx3eTm8qxGJRID72JR11e0D86oT5lhRXilXEMDRw=; b=DZiOU/1o2MVl2yy53DWdMijyQpDM+TIAnDuQZu7Ev0LXO3k2mRahPah84As+2cuEQ5 rIEKRGt44po82c0/G+jgFRmmSEOtjDkOAq2W7HxjdjYGn1RZvrJJHIvZlfBdpHJ/bI7T lQd1OpgWjC10fR5kx/fjxxYdlLF2KOtIyNaONZuINKF4+aJ5+EK+RI5yUEZtXro58cHS 2UkuGvQKVMQWxl9gnlHdBEOe2Hts2djjqNEO/2/mrFEXCcxpvXAi6m4kZN9UhlLWn2b4 6PapyTJ/GP//ZgTroeS/RLy6iKh+XoIZAZI3mwrifzZ9Qb5z5gIwevuvp2/TMc7kgchY os+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="U5n/1dIl"; spf=pass (google.com: domain of linux-kernel+bounces-13403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r25-20020a50c019000000b00553a587844csi5856845edb.450.2023.12.30.03.35.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 03:35:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13403-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=@kernel.org header.s=k20201202 header.b="U5n/1dIl"; spf=pass (google.com: domain of linux-kernel+bounces-13403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 DC7361F21952 for ; Sat, 30 Dec 2023 11:35:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B4FC79CC; Sat, 30 Dec 2023 11:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="U5n/1dIl" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C5DAE5676; Sat, 30 Dec 2023 11:34:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D72A9C433C8; Sat, 30 Dec 2023 11:34:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703936091; bh=1yYEGXvx/YDRGmJ5mBECuPkbf2R58XFI65h+zZJ+hE8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=U5n/1dIlvru2ILAHUy4fukwKHQtmfPKekQCobkHm8aCa74HOEwFVtKbfuKSg3xC8c ytDK4wl5vBK7RcWCnD5dmVoqMxb3KvJv2K3vyQCHniMBniHW17q9u2XE2nkwiNe88F hSjZdO7PG1Febjzvx4aHs3CNnbxJuG5FG+BmyOr42RkW4TFwEyjm49QlxWysEc05vb bNDLhA1vOWrC8D4CB2u33muSOLUT0hBvXy084NhfVKWo//DDq0aY+FyW4VgPmr9fyk eKR3nnNPMOyps0uRBKXtsvT/067UNJAWZdDFL7sg8+Z/f+M7gzRj18IdFBu5R72pYu jZnZDbZs70+zg== Date: Sat, 30 Dec 2023 11:34:44 +0000 From: Jonathan Cameron To: Andy Shevchenko Cc: Petre Rodan , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Klinger , Lars-Peter Clausen , Angel Iglesias , Matti Vaittinen Subject: Re: [PATCH v2 08/10] iio: pressure: mprls0025pa.c refactor Message-ID: <20231230113444.74de6b93@jic23-huawei> In-Reply-To: References: <20231224143500.10940-1-petre.rodan@subdimension.ro> <20231224143500.10940-9-petre.rodan@subdimension.ro> <20231226164922.6d7132c1@jic23-huawei> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 27 Dec 2023 18:37:42 +0200 Andy Shevchenko wrote: > On Wed, Dec 27, 2023 at 04:33:37PM +0200, Petre Rodan wrote: > > On Tue, Dec 26, 2023 at 04:49:22PM +0000, Jonathan Cameron wrote: > > ,,, > > > > > ret = devm_request_irq(dev, data->irq, mpr_eoc_handler, > > > > - IRQF_TRIGGER_RISING, client->name, data); > > > > + IRQF_TRIGGER_RISING, dev_name(dev), data); > > > > > > 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. > > You can split in the previous patch accordingly, so data comes to a new line. > > ... > > > > > +#include > > > > > > 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 function); did you mean 'ARCH_DMA_MINALIGN'? > > 89 | u8 buffer[MPR_MEASUREMENT_RD_SIZE] __aligned(IIO_DMA_MINALIGN); > > > I guess it makes more sense to move it to the .h file, where buffer[] is defined. > > Yes, C-code and especially headers should follow IWYI principle. The real user > of that definition is _the header_ file, and not C in this case. Absolutely - it is clear why this should be included from the header file. Jonathan > >