Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1212376rdb; Sun, 7 Jan 2024 08:32:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGh7KP5TwLoJGiVpzids5gqNXCdqLo6xBEw+W+Q64TeNhbkPw912iH5XHf4gC7xn11D0K2x X-Received: by 2002:a05:6214:2389:b0:680:2fa:8e58 with SMTP id fw9-20020a056214238900b0068002fa8e58mr3399890qvb.103.1704645151722; Sun, 07 Jan 2024 08:32:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704645151; cv=none; d=google.com; s=arc-20160816; b=M8dW7bFvqkCamHcFbPb7Po4F6xL16ziloI/Ja5bwCweF2zbO2XhyR16mL0Gxw2fmsQ z+E/mUQKsFc37RmV1Aog8Hi/QLlWDxMai121WJgAFzHYXKwJjJbo2mve7iXg/wbwJHnZ nGtQgXpj6oKa67Uo++xJyjyy+bL8qz43zehrsT6Khgrd/loVieWnRbjE1zYxxgZFnCJJ zneIPpMxaj1vFNcdHUbmZmUvom7QfJCKmCp23fPeWfYzrOeUCVWLEHbTuHJup90JJUvu qV9CTtdZ0u2eG5wG46xc78zPDHpvNL8kH3a/4He3nZF1/NNbDSff4X0arCaLBMgqAt77 ly0g== 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=1rYzb+bUaPj9qIclhS9F6J8cgWMlAcSPTc95AerKK78=; fh=TEMBx3eTm8qxGJRID72JR11e0D86oT5lhRXilXEMDRw=; b=xGeZq2XUIaegvrdcoiJDqYmQuNzR/FKfYfE3XLTEFODGmU9H4CFci5qF6ZRZuVh24v y+2zNQ+nxLPTRy511Fmt3aSFipGi48jBDRFKOhx7WGCtgJainzp3bEoKxwfT093WDOl6 jIjynOmn90VPyHOgD1yVKsuQKhOmFXprt7q64O4lsA0OXP4KmIUHc16unyRKlPGzZIIa JxhDFeQ0PnUFFg/oH6R/vFT0K+wEMB6xEIO48hjEkOv/x6DlJaRdJ91IRGxCD1zAJk13 F0F17aPow9EhcNcR1qfBt2Is6Unu4eC1oqN+Z200jd6gyK9GbkQ/qYoy9ynvsZptZCOL LyRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uGhrVE5i; spf=pass (google.com: domain of linux-kernel+bounces-18920-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18920-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q5-20020a0ce205000000b0067f3bfc3e80si6139500qvl.321.2024.01.07.08.32.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 08:32:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18920-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uGhrVE5i; spf=pass (google.com: domain of linux-kernel+bounces-18920-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18920-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7A6961C2158C for ; Sun, 7 Jan 2024 16:32:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0C18134C4; Sun, 7 Jan 2024 16:32:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uGhrVE5i" 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 10E4413FE3; Sun, 7 Jan 2024 16:32:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F73DC433C7; Sun, 7 Jan 2024 16:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704645144; bh=exh9kYUXjvd715QZ32/MSnUargXIWrOgxzdke+sLuKA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uGhrVE5iJDZYQeAfO9XWjw0R53LcCKY8K2RMtvhzCzfJbwHlDMXWqTB+Uths0/qQx FTE1CgvhVNWbk4lNmwQv1xRWl6YNdN/1Qp38jkXUmnuZUg29q/h0OU1SIUvoC9zV6y x/NzMZdKf3zPjN2n2v/4RqH1GwTqfjfoyxD7shL9NRjRZyBDSXh7Rah7JBHgrFPw0C usHSOIILG06OPxYi7AH/lz8MYopZdquj1JXLiYx3QG35d/3wtqJxPfo4gjfA3QXAia PgYlopKkdAYyQ0dMUryZK9EJXr+7Wso4VGIgtpzflG3JvJyl5kRXKFUiuPLAqvdrk+ CzLrY+bLnwWgw== Date: Sun, 7 Jan 2024 16:32:15 +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 v3 10/10] iio: pressure: mprls0025pa add SPI driver Message-ID: <20240107163215.427b563d@jic23-huawei> In-Reply-To: References: <20231229092445.30180-1-petre.rodan@subdimension.ro> <20231229092445.30180-11-petre.rodan@subdimension.ro> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; 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 Sat, 6 Jan 2024 18:07:55 +0200 Andy Shevchenko wrote: > On Sat, Jan 06, 2024 at 06:02:52PM +0200, Petre Rodan wrote: > > On Sat, Jan 06, 2024 at 05:30:21PM +0200, Andy Shevchenko wrote: > > > On Fri, Dec 29, 2023 at 11:24:38AM +0200, Petre Rodan wrote: > > > > Add SPI component of the driver. > > > > > +#include > > > > +#include > > > > +#include > > > > +#include > > > > > > Basically here we need additionally these ones: > > > > > > device.h > > > errno.h > > > types.h > > > > ok, I'll add errno.h. the other two are in the shared .h file. > > Yes, but it's better to follow IWYI principle. Generally speaking > there is no guarantee that above will be _always_ the case. > > Anyway, I leave this to Jonathan. > When it's a local include to the driver like this I don't mind as much if the includes aren't there in the c file, but do generally 'slightly prefer' them to be so. As such I've added them here and in the i2c file (I also renamed that patch as 'refactor' isn't exactly descriptive in the patch title!) I suspect none of us feel that strongly about this so rather than slowing things down I took a fairly random decision that let me apply the series today. Anyhow, along with dropping the text on what this was tested on in the final patch - series applied to the togreg branch of iio.git. However, I'll be rebasing that tree on rc1 once available hence for now this will only be pushed out as testing for 0-day to get a head start on poking it. Thanks, Jonathan