Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8513880rwi; Tue, 25 Oct 2022 07:34:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Y0LgytPyiYYd9nkNx4d14RdH55TPDTGedGlbkrZSUHhs4IxZ+sl2OhrlwlJwblB8PzEb2 X-Received: by 2002:a17:906:5d04:b0:77f:ca9f:33d1 with SMTP id g4-20020a1709065d0400b0077fca9f33d1mr32858070ejt.526.1666708496023; Tue, 25 Oct 2022 07:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666708496; cv=none; d=google.com; s=arc-20160816; b=jFcdIy92OJxsUwsAfm9Puo7fFdojSFCU8HqcH/9Go56ZvVLV52E7HM/wMUOXDYNcnf JBNnjlEfBY+63Pzmr1xUnFtI+X3wepwHtqCIflPmqVmx8rTJ/wzc3jBZV2xugSol2StM 14ExwiwKGAyCWxu8Rfq59bC2yapMKVggnNontz2YwMsZ9diM9KdRWtTISZMiyroYRVIg Zf5LKvYWQ2P0fUHfU0VD4OzZhnk0rUdapfiaev4VrrCjOZ2ap/NK26txPVr0M5ryZvTG E5L6hnTmvNi7R55iweZXlVvGubmTJs7gxSEzk3DwXYqkqAZgsei7SFkGhyG3myiZHDU9 K3fw== 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 :message-id:date:subject:cc:to:from; bh=Vevq2XZppOuZdLEidBLZJre7pnMfKYi92FqUkVQjTR0=; b=Nt/vYrjwkgXTQYxFuBOBasKRrCuvfRvi58zU7MicXm5Myfy4LX7XvPCyNOFGj8aLnG djcMCkEYQaQ3Xy8HP2Z2nnOHnKKmduiDxndyo3jQojhHmCwAbQRWlPSemqZq/cA9phT4 8W5SJoC9XEetSGhC1vGAI1aEMxZLGPmupE0ASACVQC1BVnCeP+SNcc+yOxPMUoyQtHDX vSGO+i2BtyFkrT5IWb0pT+jI7jzaPl1TLZr5Iy9bl1ZpLLXxBj7Ai8Mi9g/mxLddu/Tu y5tpT/0f74Z8nPWpGOdFnqaAegLYJc3AdbDaM30CA5FQXFGocCNDJdNLQh/XthrXyOCo t03g== 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 q11-20020a17090676cb00b00781a47397b1si2619669ejn.502.2022.10.25.07.34.29; Tue, 25 Oct 2022 07:34:56 -0700 (PDT) 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 S231795AbiJYOIL (ORCPT + 99 others); Tue, 25 Oct 2022 10:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232625AbiJYOH2 (ORCPT ); Tue, 25 Oct 2022 10:07:28 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA57017A03A for ; Tue, 25 Oct 2022 07:03:49 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed10:9dd:efb4:9ae5:d7b4]) by andre.telenet-ops.be with bizsmtp id cE3m2800S1HY1Pb01E3mMj; Tue, 25 Oct 2022 16:03:47 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1onKWw-001R1Q-Cp; Tue, 25 Oct 2022 16:03:46 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1onKWv-00ERYC-NG; Tue, 25 Oct 2022 16:03:45 +0200 From: Geert Uytterhoeven To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: Biju Das , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] pwm: Add missing dummy for devm_pwmchip_add() Date: Tue, 25 Oct 2022 16:03:42 +0200 Message-Id: <12f2142991690d2b1d6890821f6e7779a4d4bdc0.1666706435.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,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: X-Mailing-List: linux-kernel@vger.kernel.org The PWM subsystem supports compile-testing if CONFIG_PWM is disabled. However, no dummy is provided for devm_pwmchip_add(), which may lead to build failures. Fixes: bcda91bf86c1ff76 ("pwm: Add a device-managed function to add PWM chips") Signed-off-by: Geert Uytterhoeven --- include/linux/pwm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/pwm.h b/include/linux/pwm.h index d70c6e5a839d6902..bba492eea96c5552 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) -- 2.25.1