Message ID | 20221117110806.65470-4-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp338507wrr; Thu, 17 Nov 2022 03:10:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf4DqVF0OqPoqalbU98Xaeuh9CjXDR0pGVkmfWS1toew63LBkzbI0C1V5bgR4coAi9C2m0/y X-Received: by 2002:a17:902:e995:b0:186:ceff:f818 with SMTP id f21-20020a170902e99500b00186cefff818mr2379172plb.11.1668683419603; Thu, 17 Nov 2022 03:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668683419; cv=none; d=google.com; s=arc-20160816; b=m/15KSJ2T4DMPRRSCpQcQW57cOKY7+XSxH0WsmKk1LHbZBLG4MJKR1i8Wh3Vl3b/Z4 BcpDaRCILgDuykS7RFSzW8MKCzuibedIcUTFKVIhtvS7IUMxUVVCpQ8+ohJEpvrfLNk9 dB/kUUM4OlSFqcC7p2dNNhLhdYKCAfNW9ye/XnI5SHuKBv3lkBAXiohSMmpB15nTUJ2p A+jjkRUzElRc5YqYFhPzy+1WpGZ67IHyjt89uDXkAD/lSOnB56MIGwJ1I9ZtZMQnevaJ iSMAD2dRzbKzPHCGYdjy9uXpCnXuI3tZRqvBwfZbNOiugUSWuYMck7PnIMRdJ3BUdGKy G6ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PrrblmvrX+fbz2eYuGDxK3QLINS3XTtGWbdCWhc/99I=; b=zFaAx0CRT5KAnfslEjZpuFxedyCua1Pl+oi77x97b+3MFsyP3GyrgFulBRqhQ7g3vQ MAYOapxh4BvYtBsiIlA/6vuoq6g4puDe+OSuzGgVJHvD8Vs6HAWhhWXFLCKJUQLgLdzn 7c80j8G+KvAuvMa3q4O6741DoYyJl1ZHusfc4ZFcMG0xyVUEpzQ9uodTgOfENixpZXHq 83Uq4fY0PIdxiJl04RNtVz+l2b8zIuMkx9Q3IT4DfpPpm0RFz5Q6abQXZFumecfTwJ+V tPZMlDcCJ5pM6xVzpG3VcB6djuCCBquG4YnRNCQSoKNS5S2hqC6sDpb9ge6HLlzmjPVG dl3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Hr/jsFW2"; 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=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y24-20020a170902b49800b00186e8c3782esi672705plr.386.2022.11.17.03.10.04; Thu, 17 Nov 2022 03:10:19 -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=@intel.com header.s=Intel header.b="Hr/jsFW2"; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239820AbiKQLIZ (ORCPT <rfc822;just.gull.subs@gmail.com> + 99 others); Thu, 17 Nov 2022 06:08:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239833AbiKQLIG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 17 Nov 2022 06:08:06 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1E0E5CD3B; Thu, 17 Nov 2022 03:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668683278; x=1700219278; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SenDKLm2OWKWrfbj90zOGSkRIvKF8vhA60ntFVPCAtE=; b=Hr/jsFW2Z9BY1Wa63nSdogE2815KJ3p7viEvIJ/mWr/pmvMK2j4AAUE6 i54GidH3knmwvWBek359c3/IfAFVG/6rZXdW8Zty655e95S6pvENMlbcA inSW5Fv8RnrJ2mNIt4pMG2rlTDY5OzjofKMm2jKHTsWwjusS0hpmgr6th HL9jPBrmYkXuY2PtcTWiINsckCNZoWPjnSl5ve2ZjT/ZOVJkenCzPUeUb 9Iof28iiLtof5aFOKof2W2LBawPb90ktxYhqji60Mfwy7VSSL8wa2w16O NEYgDqSDTT/7K2bS1KBx5n+2gnQJxTmUJKvTJlyKXuzhp5pAdoH63w2n2 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="314638719" X-IronPort-AV: E=Sophos;i="5.96,171,1665471600"; d="scan'208";a="314638719" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2022 03:07:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="617572338" X-IronPort-AV: E=Sophos;i="5.96,171,1665471600"; d="scan'208";a="617572338" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 17 Nov 2022 03:07:55 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id CECD0385; Thu, 17 Nov 2022 13:08:20 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Mika Westerberg <mika.westerberg@linux.intel.com>, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, Hans de Goede <hdegoede@redhat.com>, Thierry Reding <thierry.reding@gmail.com>, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org Cc: Andy Shevchenko <andy@kernel.org>, Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH v5 3/7] pwm: lpss: Include headers we are the direct user of Date: Thu, 17 Nov 2022 13:08:02 +0200 Message-Id: <20221117110806.65470-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221117110806.65470-1-andriy.shevchenko@linux.intel.com> References: <20221117110806.65470-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749741385252430858?= X-GMAIL-MSGID: =?utf-8?q?1749741385252430858?= |
Series |
pinctrl: intel: Enable PWM optional feature
|
|
Commit Message
Andy Shevchenko
Nov. 17, 2022, 11:08 a.m. UTC
For the sake of integrity, include headers we are the direct user of. Replace the inclusion of device.h by a forward declaration of struct device plus a (cheaper) of types.h as device.h is an expensive include (measured in compiler effort). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Thierry Reding <thierry.reding@gmail.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> --- drivers/pwm/pwm-lpss.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On Thu, Nov 17, 2022 at 01:08:02PM +0200, Andy Shevchenko wrote: > For the sake of integrity, include headers we are the direct > user of. > > Replace the inclusion of device.h by a forward declaration > of struct device plus a (cheaper) of types.h as device.h is > an expensive include (measured in compiler effort). > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > Acked-by: Thierry Reding <thierry.reding@gmail.com> > Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> > Reviewed-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Best regards Uwe
On Tue, Nov 22, 2022 at 02:39:33PM +0100, Uwe Kleine-König wrote: > On Thu, Nov 17, 2022 at 01:08:02PM +0200, Andy Shevchenko wrote: > > For the sake of integrity, include headers we are the direct > > user of. > > > > Replace the inclusion of device.h by a forward declaration > > of struct device plus a (cheaper) of types.h as device.h is > > an expensive include (measured in compiler effort). ... > Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Thank you! Patch 6 is still in question.
diff --git a/drivers/pwm/pwm-lpss.h b/drivers/pwm/pwm-lpss.h index 2c746c51b883..4ce6daa46ca8 100644 --- a/drivers/pwm/pwm-lpss.h +++ b/drivers/pwm/pwm-lpss.h @@ -10,8 +10,10 @@ #ifndef __PWM_LPSS_H #define __PWM_LPSS_H -#include <linux/device.h> #include <linux/pwm.h> +#include <linux/types.h> + +struct device; #define LPSS_MAX_PWMS 4