Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp411884rwb; Thu, 10 Nov 2022 02:36:13 -0800 (PST) X-Google-Smtp-Source: AMsMyM41IJbtWKTxJe4noQOu13Bt7op0U6Qgd3UorVAbz3vVndYnOhJt49jy4mjRFQoScukBJlF0 X-Received: by 2002:a63:6948:0:b0:46e:af43:14a4 with SMTP id e69-20020a636948000000b0046eaf4314a4mr54145862pgc.391.1668076573424; Thu, 10 Nov 2022 02:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668076573; cv=none; d=google.com; s=arc-20160816; b=nQp6ZJvXqyqld1SHmsOqUNKwN8opck0gbJbEVR80wjQeiMuAb3i4cnR984nYO1M+3B CplqFRrIX/gVAoEkv0YExq1QEcTyHLlsJbyuK3inmhkT34rVI0GcNRtKpZUykIbHYUJ0 QiCqYAp2dgLay5lOyn9f7FNZSW/78Ewq1T+IJAqVftU0UNEHIbc+2q3mc8jj2rOsN717 hbOxu07ckSTukdPlN2tt3L9BiH5i3v1A//XvrAJJ4Uon7evx0WwCg+sFNZpcF6ywEQWI 9FwawNV8Yd9KXwq9+Qayub+jBRamO/0OoFbtBPD9TD5vT8wbWc3dubhr6bW+pMUBnkcj /fQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bMnEjbXGrC92nVzdyHfvyCY+lC7eK5Tz7B7XntglQV4=; b=gaRwweLYRoi2LmVW4ezRl6L1TNTxhXpG0HnGtkMtH2qFWNIWQZ3snZoB3iV9eHdspy jrLcLwRVWgF3K5UrOJDZ09ITYOvIWQzHw3TgAkx0kTnn64KH49dk0PcV5tWGRponbhus tVClghQAuY+e+1GbZ8GfUIMBqzzFq6BpOxy7MeaR1443FtFP/UdNy0bW6iXSiPmOSuDn 5ierxZ/KyO1pyomIHNmTrx8YLjw7a9QWn/55smVeSliydCvj4J6ihsIRCcnFDwuIbNkg YRghp9P20D7iPIyLwlBQCMiieIIHFFDHM4wbuPQeI4eIJ1ZXtYUwNd7NcywZhZNl2f9l YyQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p35-20020a634f63000000b00442e77a852bsi20872884pgl.457.2022.11.10.02.35.59; Thu, 10 Nov 2022 02:36:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbiKJKUn (ORCPT + 92 others); Thu, 10 Nov 2022 05:20:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiKJKUm (ORCPT ); Thu, 10 Nov 2022 05:20:42 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 410DC19C26 for ; Thu, 10 Nov 2022 02:20:41 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ot4fc-00074I-7y; Thu, 10 Nov 2022 11:20:28 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1ot4fZ-003Qp3-KW; Thu, 10 Nov 2022 11:20:26 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ot4fZ-00FcfD-NA; Thu, 10 Nov 2022 11:20:25 +0100 Date: Thu, 10 Nov 2022 11:20:25 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Andy Shevchenko Cc: Andy Shevchenko , Mika Westerberg , Hans de Goede , Thierry Reding , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org, Andy Shevchenko , Linus Walleij Subject: Re: [PATCH v2 3/6] pwm: lpss: Include headers we are direct user of Message-ID: <20221110102025.2tqdb3v6ndg6vyqk@pengutronix.de> References: <20221108142226.63161-1-andriy.shevchenko@linux.intel.com> <20221108142226.63161-4-andriy.shevchenko@linux.intel.com> <20221110072144.2s37r52qcpi6utgh@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ilrfeteqmdew4gst" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ilrfeteqmdew4gst Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 10, 2022 at 11:53:59AM +0200, Andy Shevchenko wrote: > On Thu, Nov 10, 2022 at 9:22 AM Uwe Kleine-K=F6nig > wrote: > > On Tue, Nov 08, 2022 at 04:22:23PM +0200, Andy Shevchenko wrote: > > > For the sake of integrity, include headers we are direct user of. > > > > > > While at it, move the struct pwm_lpss_chip to be after > > > the struct pwm_lpss_boardinfo as the former uses pointer > > > to the latter. > > > > That part is fine. > > > > > Replace device.h with a forward declaration in order to improve > > > the compilation time due to reducing overhead of device.h parsing > > > with entire train of dependencies. > > > > Together with "For the sake of integrity, include headers we are direct > > user of." this makes an a bit schizophrenic impression on me. You add > > because the file is a direct user of it, but you drop > > despite being a direct user. >=20 > But we don't use device.h. What is the canonical header to provide struct device? > > If you adapt the reasoning to something like: > > > > Replace the inclusion of by a forward declaration of > > struct device plus a (cheaper) #include of as > > is an expensive include (measured in compiler effort). >=20 > Fine with me, thanks for the draft. >=20 > > I could better live with it. I would even split this into two patches > > then. (i.e. move struct pwm_lpss_chip vs the include and forward change) >=20 > I think for this small change for a driver that hasn't been modified > often it's fine to have them in one. But tell me if you are insisting > on a split, I can do that. I don't insist. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --ilrfeteqmdew4gst Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmNs0GcACgkQwfwUeK3K 7Ak9iggAhGxxudCLGFL25NcgPyQ/qjyQM1LryRG9tCC0hHhkmpvNEdxRgdHghG9L 48uWXHpGmJ4CToYbKjmeN+2pk0lrCWwh9R5Av8y8/O5oDNxrda8uwtG7mOdhpC3q 0KZEvYuwlroI87pq1qG81UQdyHsQuZjusiFQctNHqgWI3XuDIOvMM8kGyET6uPe7 w9v+4ZsvUv979VgO0c49L9C+G/3XF9Ta2uJuovwnQt2clj9RN//5ai9JDQw8vnDr pSjXFSO7sqokaRTsVEyUU4TbH0R/DI7UjuUApitn86YcEMrV/FLE8TiOg7CBbZzl fOZ+jcg1cBba21CAv43jNGufS8NknQ== =Gg6m -----END PGP SIGNATURE----- --ilrfeteqmdew4gst--