From patchwork Mon Apr 24 12:34:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 86984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2644855vqo; Mon, 24 Apr 2023 03:39:07 -0700 (PDT) X-Google-Smtp-Source: AKy350Zpem3vAS3RoIp9IkE0EPiKdv6SHIJ05jirrJu042R35kE/x+/vBe/5juE7d9zBeoUjPQ6u X-Received: by 2002:a17:902:8501:b0:1a1:f95a:24f2 with SMTP id bj1-20020a170902850100b001a1f95a24f2mr12214389plb.19.1682332747073; Mon, 24 Apr 2023 03:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682332747; cv=none; d=google.com; s=arc-20160816; b=y/74msFmDFOsm8Ib4TpSG1vLaS/nqozGQYcKe3gwGeYYCBDxHc0uDxcMCxAfov5EMM DgK89q0s1JYZh1nXOMRsepki9ibMP30k5YWRMvY4wYh90DQOXDak8uoFYzv5z1tlt+im sjkzXb0gboBNee5qaScVuJ6Fy8eEsWh8Mq27vkFBH565R6u4V/Kj6weadqvrtHNRv3z6 EWyrUNboIPx+KQ14DVWckFWkIlgcaAojwAUSfKybtvV1XEB+KBldNbZ4vodY3HbpzZiH apPiSJc0UslsYzyo6c6bylE7ZC8urMeBXdFpMtbJDz0uu8rN2sbnrzcCvv2dlChxJvCz hQeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=Mx2hqLt4/z50beOgPB+ygINDekWFXL6ATj4afqN4iBs=; b=sf3iY+qzOeGTsWGmYCJSwGubPwAxx1aSplpb5GZTcdOPFLNsvRkAnEdul2iUFtdnw8 V8PD7i1ehuWgLgLXMDn69CepUU43e0WjUxQVKCvTkm/y9QQr9335Cslut8F86S7Zjho0 M/KeZOT5NJJyO6aRGVY/AVtwAaSnwDtF6muA1M22QlXT0epLf6inZAH9KOBOLUygoiyM L4mdXRYgHGW0cWSsGlmGwyefRfeuwnupk2gd7+psaeAREtNtZAnU7t8s8ASmUPpYGUV4 kcm3D174iHSBF8Uu9ELEPDjx+Glwx3YaY1cHJPJxi30VqZ6yPqrSv9ZVqYu0xYnv/xlY MXfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=qBdLkkz3; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a17090a7b8300b00242bface51csi10971162pjc.108.2023.04.24.03.38.54; Mon, 24 Apr 2023 03:39:07 -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; dkim=fail header.i=@maquefel.me header.s=mail header.b=qBdLkkz3; 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 S231616AbjDXKfT (ORCPT + 99 others); Mon, 24 Apr 2023 06:35:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231255AbjDXKer (ORCPT ); Mon, 24 Apr 2023 06:34:47 -0400 X-Greylist: delayed 2343 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 24 Apr 2023 03:34:24 PDT Received: from forward502c.mail.yandex.net (forward502c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d502]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53956E42; Mon, 24 Apr 2023 03:34:24 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:261e:0:640:2e3d:0]) by forward502c.mail.yandex.net (Yandex) with ESMTP id 2EA505ED20; Mon, 24 Apr 2023 12:36:10 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JZBb1pbWwKo0-IjRSbbKj; Mon, 24 Apr 2023 12:36:09 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1682328969; bh=Mx2hqLt4/z50beOgPB+ygINDekWFXL6ATj4afqN4iBs=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=qBdLkkz3cuV/oTDYOawaHRLB0ZiqRfECIW5t2bkr7rltqMAdcfnDqMedsRgH01cBB grZQh/5MRVdXOGnrq8Totopop9u6WEUocg3WxOElfBPrVV3LqYvTRQmjAhn+Dl21Xy piXcb4uyJTL+VRriFrbA6R7YuB8uu1ZsVTwc4INk= Authentication-Results: mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin Cc: Arnd Bergmann , Linus Walleij , Alexander Sverdlin , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 36/43] pwm: ep93xx: drop legacy pinctrl Date: Mon, 24 Apr 2023 15:34:52 +0300 Message-Id: <20230424123522.18302-37-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764053742536433492?= X-GMAIL-MSGID: =?utf-8?q?1764053742536433492?= Drop legacy gpio request/free since we are using pinctrl for this now. Signed-off-by: Nikita Shubin Acked-by: Uwe Kleine-König --- drivers/pwm/pwm-ep93xx.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/pwm/pwm-ep93xx.c b/drivers/pwm/pwm-ep93xx.c index 8bfe6cfbb3db..657adb011aeb 100644 --- a/drivers/pwm/pwm-ep93xx.c +++ b/drivers/pwm/pwm-ep93xx.c @@ -45,20 +45,6 @@ static inline struct ep93xx_pwm *to_ep93xx_pwm(struct pwm_chip *chip) return container_of(chip, struct ep93xx_pwm, chip); } -static int ep93xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) -{ - struct platform_device *pdev = to_platform_device(chip->dev); - - return ep93xx_pwm_acquire_gpio(pdev); -} - -static void ep93xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) -{ - struct platform_device *pdev = to_platform_device(chip->dev); - - ep93xx_pwm_release_gpio(pdev); -} - static int ep93xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) { @@ -157,8 +143,6 @@ static int ep93xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, } static const struct pwm_ops ep93xx_pwm_ops = { - .request = ep93xx_pwm_request, - .free = ep93xx_pwm_free, .apply = ep93xx_pwm_apply, .owner = THIS_MODULE, };