From patchwork Thu Jun 1 05:45:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101749 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp79105vqr; Wed, 31 May 2023 23:06:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ54iFfLoXh02r1uw1ZvoUNtCY7M2fKSLvgMMgGJIM3iZgzbUc5fnQTXSCHFssdoCilam15i X-Received: by 2002:a05:6358:4317:b0:127:c478:6418 with SMTP id r23-20020a056358431700b00127c4786418mr4316071rwc.30.1685599598582; Wed, 31 May 2023 23:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685599598; cv=none; d=google.com; s=arc-20160816; b=d083zj775LQZi++1iUwIMwcUJfwVm0n6uQZ+qfzumdct8xDCi57U2SUcD+SbwDfMhm xtY8p20grAgqGpY9jlks5YJujmILrvj+uSZJKwYIQa0vy1M6OglOO+QR8GNwOXrhRjmu vMsJal0hejfPx0xOoIhGgfQgHOImTt+RysNclWNAGP/Pu8V6uOeBkdLMpGPmgMqTDm9x G5b99BW/zqyXgj4pF2MqwDDaZpml3eOQ3zX23ho4Vc+PJiY3DrqrbvXohLXwg41m0yHQ z16HiuWWpenN2NHG1019nLx+ZmVS++HRsqHJOAxPvW0ks5SVQzxyl9AsxIVfNyboWkiw NfDg== 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=EOmo+RE2lmZbsgHFDMmAtXJCZ5Gk2K8xR39C2HP8i6U=; b=V1hn2IvgNu4VQIPWXZ5nRrYJq23BPp2Kl3FcUO453K6ZJzJNd8avv6MPRE2Jc912sI Lvo6C8S2obW8G6dmPVss+1DiumrHuu0PL752BeH7msTohrj3a6lv0IiuhQcfb/h88PTA 7hZUI7FxOVKaBKV5V8bTvz/lBU84QMukfOb7kFqMhmABZRPHu09RLvcEC9rSURtufcCe UpGDBPcBspZZd6vmrAee5azcJa552406h1zOzKp13e9bLMA/tzETAZhsAgFbS/eE2FW1 yh1T7W7jWbkapcOoEefEZxJ4TUvHdVz+N5m8wOUZ2XI2TLAIuI4WT+5Z/e0s/bd2wumZ sCTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b="VdnyYB/V"; 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 j15-20020a17090a694f00b00257a8dc0348si605542pjm.75.2023.05.31.23.06.26; Wed, 31 May 2023 23:06:38 -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=pass header.i=@maquefel.me header.s=mail header.b="VdnyYB/V"; 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 S231753AbjFAFsC (ORCPT + 99 others); Thu, 1 Jun 2023 01:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231602AbjFAFrE (ORCPT ); Thu, 1 Jun 2023 01:47:04 -0400 Received: from forward100a.mail.yandex.net (forward100a.mail.yandex.net [178.154.239.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0540D10EC; Wed, 31 May 2023 22:46:30 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward100a.mail.yandex.net (Yandex) with ESMTP id 37FD046CD1; Thu, 1 Jun 2023 08:46:29 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-g8stdGLu; Thu, 01 Jun 2023 08:46:28 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598388; bh=EOmo+RE2lmZbsgHFDMmAtXJCZ5Gk2K8xR39C2HP8i6U=; h=Cc:Message-Id:References:Date:In-Reply-To:Subject:To:From; b=VdnyYB/VNrOd+qfrFT1H4Id+8uaguK42lktXQ2n82X1822UuFEV66jyQl/8cAvFvT zc6ol3NJhdpumMgNgS+vGH9LgISgn+Eu/XLS1aqDEGovd92q2Drdo4PREXBCyf8pEB CTcBI91a+WZbwYnhK5lLp18OLCcBpZ8pHgmPNdmw= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 37/43] pwm: ep93xx: drop legacy pinctrl Date: Thu, 1 Jun 2023 08:45:42 +0300 Message-Id: <20230601054549.10843-19-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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?1767479284160754244?= Drop legacy gpio request/free since we are using pinctrl for this now. Signed-off-by: Nikita Shubin Acked-by: Uwe Kleine-König --- Notes: v0 -> v1: - dropped leagcy soc header drivers/pwm/pwm-ep93xx.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/pwm/pwm-ep93xx.c b/drivers/pwm/pwm-ep93xx.c index 361984ef4c0b..ac08bd0e7572 100644 --- a/drivers/pwm/pwm-ep93xx.c +++ b/drivers/pwm/pwm-ep93xx.c @@ -27,8 +27,6 @@ #include -#include /* for ep93xx_pwm_{acquire,release}_gpio() */ - #define EP93XX_PWMx_TERM_COUNT 0x00 #define EP93XX_PWMx_DUTY_CYCLE 0x04 #define EP93XX_PWMx_ENABLE 0x08 @@ -45,20 +43,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 +141,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, };