Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp226097rwb; Wed, 9 Nov 2022 23:16:51 -0800 (PST) X-Google-Smtp-Source: AMsMyM4zdx5oB32Jj7i7oPn0tdg7EltFsD1ZSOtdEkBhfvcpUy48qxQggri6OD5ebdRfEdVq+0OF X-Received: by 2002:a17:90b:38ca:b0:214:2cff:fbb5 with SMTP id nn10-20020a17090b38ca00b002142cfffbb5mr43467003pjb.79.1668064610496; Wed, 09 Nov 2022 23:16:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668064610; cv=none; d=google.com; s=arc-20160816; b=gekL60Jjfk7xe9wKVq4VGEqQjwonZbJxQAoccvOMAW9xmRf9siBDkl5jl3BarXGhny d+PR32ieVPlJv6nWUT4DeSOcYBsXFAGaH7LXJl5Rp2ifBltDF7BUaq+OiLvEhEzK4BkL /9KfWuQAbLGxWWiuI0Vz7ZCwbeL2GAcEBpYGb0xH9wREMYY4fXsZHB54MYGURGhJSjSC 1EI9mum/elFw2Iwx+ATNljBiK/g6Kj6AY/CYZg8FrKwH9DeLA3MAFxbuOIUr2BwuoA6L QsxwR9e16LRp9Wa7CJlCo8TPkZMpI+k4ybwy1AW6iubvbn2kKkrlSO+S/F2DnS8xOWn6 4iVg== 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=oST3WjJloUUI+VDKCn/M/Ov3zfGzePWNhf5KcHbFs5o=; b=k1hvZwo4W6qHwdZFJ8UbAt0Q5ozcZWmsnbzFFHXqMRaTEMsTp/75jp2ieJg5H1iYfQ owz59A84ZiwEB4GrMbzTu2uhrL5m2Xz/II/scvT/njOeDdwiVWNYsP6D5TGGTIW8LGKe O3B1BBE+ykT9IinFvLCbJ/G6yo/26kjZbvvvFX6Npu/J8JEyX9rHHdDVHpihR92hAT+J Flug9fGJPUkV//3pTU8T7YsyDuhJTvBe7vjSjXdmT5eVlwUQzj85OZRNmq1K45I2BAPL UrmMySwNqNdndMlR6NiokTixth+Cot5YD9GLzdz9vLOjI02bEncOxqXL8Q7bffF/ISaI aKaA== 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 a5-20020a170902900500b00186b1bb14a0si17948253plp.559.2022.11.09.23.16.37; Wed, 09 Nov 2022 23:16:50 -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 S232725AbiKJHHh (ORCPT + 94 others); Thu, 10 Nov 2022 02:07:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbiKJHHf (ORCPT ); Thu, 10 Nov 2022 02:07:35 -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 CC9F827B3C for ; Wed, 9 Nov 2022 23:07:33 -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 1ot1ej-0006Ue-Ex; Thu, 10 Nov 2022 08:07:21 +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 1ot1eg-003Omm-Vx; Thu, 10 Nov 2022 08:07:19 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ot1eh-00FZqn-40; Thu, 10 Nov 2022 08:07:19 +0100 Date: Thu, 10 Nov 2022 08:07:18 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Andy Shevchenko Cc: 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 1/6] pwm: Add a stub for devm_pwmchip_add() Message-ID: <20221110070718.bqpam7h3hjf2hkip@pengutronix.de> References: <20221108142226.63161-1-andriy.shevchenko@linux.intel.com> <20221108142226.63161-2-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hbekflahz2byd2ag" Content-Disposition: inline In-Reply-To: <20221108142226.63161-2-andriy.shevchenko@linux.intel.com> 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 --hbekflahz2byd2ag Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello=20 On Tue, Nov 08, 2022 at 04:22:21PM +0200, Andy Shevchenko wrote: > devm_pwmchip_add() can be called by a module that optionally > instantiates PWM chip. In case of CONFIG_PWM=3Dn, the compilation > can't be performed. Hence, add a necessary stub. >=20 > Signed-off-by: Andy Shevchenko > Reviewed-by: Mika Westerberg > --- > include/linux/pwm.h | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > 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 *ch= ip) > return -EINVAL; > } > =20 > +static inline int devm_pwmchip_add(struct device *dev, struct pwm_chip *= chip) > +{ > + return -EINVAL; > +} > + I'm a bit surprised to see this returning -EINVAL and not -ENOSYS. But that's in line with the other stubs, so: Acked-by: Uwe Kleine-K=F6nig Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --hbekflahz2byd2ag Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmNsoyQACgkQwfwUeK3K 7AkwtAgAlngwWjscEhoQXRiD28VBXc9a5O4+98O/r+kYB2f4/9rN6+2ET0CWOpzd 8KDQ9B5IuGoSKhII3IwDcM4rRDI3DwECHp23BbLQL6NXjgxtw3eYZ7hJwUDEXpRE 85aPp4cSqFMMkEpCOx8dLnj6rRxrR+l2kmsonH8ZpOM38kVvvkpD8+UPKFL7X/Kj ENy05dR+v2QEWE1UzYNuHHxWS3D61v9+H2Ae2DGHI0JH9+24hSTLwYvAE4SivcIY O1mTM7pKNsoFuCORxf1Vit/f8ZDWD+3miMg0cfIU0AgqxaPACkZpjf/7CZ99WjJr okFGA+bWbJp7tPxqjDpAhJPJTb7Ctw== =4ga8 -----END PGP SIGNATURE----- --hbekflahz2byd2ag--