Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp400935rwb; Thu, 10 Nov 2022 02:25:10 -0800 (PST) X-Google-Smtp-Source: AMsMyM7a8IxSPQ/vkYcgiueFdKCwuiEMEmcQFxE+YZlL8LGh4KWRkjGrBxMJXJCCURD/uyDbU3MA X-Received: by 2002:a17:902:860a:b0:186:7eab:afa2 with SMTP id f10-20020a170902860a00b001867eabafa2mr63913121plo.46.1668075909999; Thu, 10 Nov 2022 02:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668075909; cv=none; d=google.com; s=arc-20160816; b=H60kIKhqmbGhIHq4C2k2rxmq74zkVgcIYzvgWxgCxk75ovi5XJd2e8diIeBnQ+E3uz SjS0JLqqn8M3SwExlkGAEmC2olVGoU3/b8IAxNJp1xSWzpumBeaGBSfJJMXY7xNTEd6f dQ78GV+qyrO5ZFEl6FkWKqVGZxUZPTzOrAP92k1WvTSbg1NT/eV6Xb8YUAVaRRZm6HuM WvsaFPgB0HQ/AZKjxYzzqDoCtREqP+rQEBM8yM3SoYtY27fSFN9UDWcyXdYZ5Bs0IzF+ HklFqe0LJEEWfsrPpjLquV7B8TkpqJAoYFpvT4a5etzACPwMVb+zo6JGEEbN7nozlGH5 fV7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=apaad6mmMC/hBO6ENkJzg34TPo62eDb6xWvAxgQ8q2k=; b=kPTzKbRtwme/aHtb8KBIFcaVsKNe1WxWn5GHhQkDXuIPikL37xdtEG1S5MWOifCUoo AQarDnVHP1qV4jVcfrI2UzfCzDCc/fP+FVKa5y3BQ8fvkZvPK0wIGkdAhwEjmiq6V5Km vk8D7BtMelozGT/EVqcVtEkFPTMrpspoJZsB52jvR/mAUG68zAtloAF1M59tEaZc8BWu plZcuebHEIUONRRbM0ad+7CV77JG+OxwQKjO4Ya9Fmq5tG9kpOoWWj1OZUY+RumSC99s 9WRL12pYf0bR2w6CAMap2t0yvLOGt04eNLjXwDsOwoxxgTGHl8eSR/Io+G2qRh9+9y1I vgNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gwLkEwMJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a056a0022c800b00557eeba9fa4si21473355pfj.91.2022.11.10.02.24.57; Thu, 10 Nov 2022 02:25:09 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gwLkEwMJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbiKJJym (ORCPT + 93 others); Thu, 10 Nov 2022 04:54:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbiKJJyj (ORCPT ); Thu, 10 Nov 2022 04:54:39 -0500 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FF3E66CAD; Thu, 10 Nov 2022 01:54:38 -0800 (PST) Received: by mail-qt1-x836.google.com with SMTP id s4so640147qtx.6; Thu, 10 Nov 2022 01:54:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=apaad6mmMC/hBO6ENkJzg34TPo62eDb6xWvAxgQ8q2k=; b=gwLkEwMJ83iRaBIRuj8qrLigTcdTjN4+W1yKV/RxAQW0V4hFw3PByyRrzgOvPuu8Iz 730jH7aM+t/J+zhnNwMwDLTOpVKn6Y3hd899W2W9cFQVYD0cAlVa4quyctGUxkoS/DEf FYFgy5q5xBS2dyHiiH0csiTRjX/BolwYYrXjeCSdcOu/4mpaBugDCPTvEsGDUT0Lj8gn GeT0DlIVi2FqjgcVCPHdVXm5QJWxfOZJK7/2tTXHcOcrpqyz9jZLDsaBchapLYmX6x8f 6CNsIVKd05+Fn+zuM97toun4NAcuLiQQ0e603AkSt1X0+Z+yx8GQHhAtr+d+Q+mL02x/ sgwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=apaad6mmMC/hBO6ENkJzg34TPo62eDb6xWvAxgQ8q2k=; b=Y2bRBfUtYYdhyZhlq2KGx928IWeP2lyIJ14lM4LmR+Osi1y7LdkLA2D+OciKvYUhar 4Pgs0JpTOmPUBei6LULwKCSqh4JTuqslM1yAlIDSorJUwrpetGXt/phoi52xlJqzlsoB /HkWIZasVvjQI0IpW5bkGlr3uzv+I9ePpWMvMA6p+qqGek3wPUtUYjvJ9R5K015Jujt1 4ypnwFgVMnzwMeNnacQFYZr3KjI/GnTJeBq5uNqJ62WRJaRPCiOWIISK1Fbkaj5f3GyT M7n0HnSNju2cHklKzK/T4oy1KFVVq6OHEKqbPC8GcIxdyfghru1bdNgVum+sgmYTCbKN yv+A== X-Gm-Message-State: ANoB5plJ3VzQDi/CzvsXj62jKwpzmDuXrme+iS8+Nu9BFwXblKFUldB0 RgI70QrX1LFMsp19YKF/r01EUoNFIm8MkVD5c60= X-Received: by 2002:a05:622a:1c1:b0:3a5:8416:690d with SMTP id t1-20020a05622a01c100b003a58416690dmr17512047qtw.61.1668074077602; Thu, 10 Nov 2022 01:54:37 -0800 (PST) MIME-Version: 1.0 References: <20221108142226.63161-1-andriy.shevchenko@linux.intel.com> <20221108142226.63161-4-andriy.shevchenko@linux.intel.com> <20221110072144.2s37r52qcpi6utgh@pengutronix.de> In-Reply-To: <20221110072144.2s37r52qcpi6utgh@pengutronix.de> From: Andy Shevchenko Date: Thu, 10 Nov 2022 11:53:59 +0200 Message-ID: Subject: Re: [PATCH v2 3/6] pwm: lpss: Include headers we are direct user of To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Thu, Nov 10, 2022 at 9:22 AM Uwe Kleine-K=C3=B6nig 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. But we don't use device.h. > 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). Fine with me, thanks for the draft. > 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) 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. --=20 With Best Regards, Andy Shevchenko