Message ID | 20221117110806.65470-2-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 q4csp338560wrr; Thu, 17 Nov 2022 03:10:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf55yrLIBhMIzNJrWoYbRXnFPi6O/X22II36ZCXuc5UrtHMw6UiuzYa+3s9mT/0PkBgUdgcy X-Received: by 2002:a17:90a:9312:b0:218:6f4b:8366 with SMTP id p18-20020a17090a931200b002186f4b8366mr2820271pjo.137.1668683426337; Thu, 17 Nov 2022 03:10:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668683426; cv=none; d=google.com; s=arc-20160816; b=NG1WlLGaPg8UGGq7Bu/91rOZFTIWauo6y4jWCxLTUImJ3QvVM5/BTh1iegSrV0Uy53 trVlPv6S7FdFnwXxxsp94X6p8omMI7L9sYayb8TdsSZhKmNVcDQxqyGIa4RLXuiYVa22 N/0pCIkck8P6m0WQo6TMTTL9SeO+mhXIbJzNVF3bS9cAHHL+VYmIjsX2e5FM1kpOTdaT dBXmH5djG1AGJjzB6kxGKC6zgC7LFMRfK+UPmL4LqUvyxR3W/FQj1Ghd4SeFUxJLYa3W R/EVWyDlA0qzcQdXgTIVLH1yW+skFUE5dXSwscxcugFGAHi04U1fu05FBofPBSr5XsnE jzzQ== 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=4mJHNUNkUb7RaQffjAzU/xeJwrC/qNrnQPj0zB1QRdQ=; b=rcQHE4hGCActgJYHdDcklJgV7cdCfRdJTh1+vVMUWMS9zRhBDhR0mmaedf0X6gVT5V QOhXYgl5BZopxGOEWy/J4Ipi4qhh9cu16cDeBhlpdTuVizU6VCv0Q0zgcei6c6PCRvRE mXIMO1IqnlR6s+jF2+sQV/9BLudoelymEglvpo5KBo/U4uCSK0Kz7MqCbT8x8xfli3uD UUdUt075/bhEvWGmJNp/v38U7V+sMkdLP2wlJB1Sa9OQu9eZI4AfIWsATeRoaTqnDNAJ kVupT3LcHZp/2KiAggSsgiI89K3lHUvyZOy1TVH3Mbv9sL+aglpFWMnwaLbc7WDLX6ZO Rgog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KfIz2r7Y; 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 m11-20020a17090a71cb00b00205d0348e7fsi553300pjs.93.2022.11.17.03.10.12; Thu, 17 Nov 2022 03:10:26 -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=KfIz2r7Y; 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 S239869AbiKQLIa (ORCPT <rfc822;just.gull.subs@gmail.com> + 99 others); Thu, 17 Nov 2022 06:08:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239832AbiKQLIG (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 DC1F169DD2; Thu, 17 Nov 2022 03:07:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668683277; x=1700219277; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/5ATWhqQrc1DZJ4f0j7ZyUNBHQXbdLiioN7qk5/mljI=; b=KfIz2r7Y75mo5nPtdgO4lOO3Py56jWtwjG2TEC89NqqoTHfpcRZ8cL6C +d2qNTf0KryBnGuI8JmFk/p6yegmn7+4eq7lWwRKHE8d/T1y5h15XxZr6 9k91yQ/bu7BsXnZDDiopml7OwHGAXiOfr5AEg81I9fXawCfYQTUJQ01Fu WXvQeqeav7QtRgX8kDgMjAfXqsnf9juxMRixA3KSTSrgYOK+x8DdXKcVb Zwrna53sDhHAo1HBaJKMSjDO5pekX0iuCKvW5pQCgWL6U7lQGJaqVSlnl ESc7rToaQ8ptCSDIqP5PP37aaKA7KxaFWEbeY/TEpjx0QxPpt+PjLRZv6 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="314638714" X-IronPort-AV: E=Sophos;i="5.96,171,1665471600"; d="scan'208";a="314638714" 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:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="617572329" X-IronPort-AV: E=Sophos;i="5.96,171,1665471600"; d="scan'208";a="617572329" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 17 Nov 2022 03:07:54 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 91D9E2F3; Thu, 17 Nov 2022 13:08:19 +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 1/7] pwm: Add a stub for devm_pwmchip_add() Date: Thu, 17 Nov 2022 13:08:00 +0200 Message-Id: <20221117110806.65470-2-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-Type: text/plain; charset=UTF-8 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?1749741392641703360?= X-GMAIL-MSGID: =?utf-8?q?1749741392641703360?= |
Series |
pinctrl: intel: Enable PWM optional feature
|
|
Commit Message
Andy Shevchenko
Nov. 17, 2022, 11:08 a.m. UTC
The devm_pwmchip_add() can be called by a module that optionally instantiates PWM chip. In the case of CONFIG_PWM=n, the compilation can't be performed. Hence, add a necessary stub. 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> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> --- include/linux/pwm.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index d70c6e5a839d..bba492eea96c 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -478,6 +478,11 @@ static inline int pwmchip_remove(struct pwm_chip *chip) return -EINVAL; } +static inline int devm_pwmchip_add(struct device *dev, struct pwm_chip *chip) +{ + return -EINVAL; +} + static inline struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip, unsigned int index, const char *label)