From patchwork Mon Nov 21 16:15:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 23935 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1687393wrr; Mon, 21 Nov 2022 08:20:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4b1cAaqrSRTjls6aSFwSyizBTeTnkq7X7ZAXtBAK+gb1Dl50JPh3ljSf+C+akM0NYE/F2v X-Received: by 2002:a05:6402:2b8c:b0:468:ebc8:7476 with SMTP id fj12-20020a0564022b8c00b00468ebc87476mr16363142edb.223.1669047631002; Mon, 21 Nov 2022 08:20:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669047630; cv=none; d=google.com; s=arc-20160816; b=Omah2+BZu4NpDuhwxJbzSZGUAK/aWdwSyzza8ucsBln48qVwA8cOzwhwv7Xf02BD6G lohzjw8XaljouS14WJ9K19Itr1panC85JEo3loLqTkOLaNGkrteyWgCUHod9GUU26ziu J+De1BpdZJJqdib4nyzWYAcVg+jvdkoYywd++nlygd4gCNs6o6sb3YZ9nTzl3bzMJtYl BZQlmw6eOIlAjQ6IchKBQWPkkf249+xJ0QGu4RMr/lINZ8zQVzdSmF9xvSkU6TWP4WuR 6uvn1Kd7gaeMnaS36p/yROAHUMU9rQG3p/rCG0SbOQgovMDret8qeuEdcV3QGKGh7Imm 6wdQ== 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=iGsWerp7aU2vipMDWXgfsa0lLItLGUAQrXN5Kjvnz4w=; b=ifxDF3jh88lsFCSkM5wTRftlfzyEgAq3keEqIU6t6eW71sy4fsq7dH4N6oDLyN3Os7 RPDfRJ90bkZvFFnOq7Oz4emeqjf9SBFPPNVFpK4ZOehY8CjXo8TM6rKBtkJ6i3dS8sSy mU9M0xoW2iXCoV0e7jQVjl3/VY9HJU8e/BK2U1/Naw2nbVrocyhAlVWsEwQGhtbRMjeg 4eknp5yB5/rv90n9GRcCtGdqKjA+PX+sw8tR4aUX815RyZj5eFscQbhfbOExqx06XM69 7vpV4zeSkA0HIwwgqhrHm5Dy928kegi+xvFTRd6N7RyngQsNSGJFXCi/46e6ganqXCGb Hdkg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg34-20020a170907a42200b00780805b99ccsi10060720ejc.648.2022.11.21.08.20.04; Mon, 21 Nov 2022 08:20:30 -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 S229929AbiKUQPr (ORCPT + 99 others); Mon, 21 Nov 2022 11:15:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiKUQPp (ORCPT ); Mon, 21 Nov 2022 11:15:45 -0500 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3084AD28BF for ; Mon, 21 Nov 2022 08:15:45 -0800 (PST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed10:4821:1ba5:2638:5c3a]) by laurent.telenet-ops.be with bizsmtp id n4Fj2800Y5WXlCv014Fjsj; Mon, 21 Nov 2022 17:15:43 +0100 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 1ox9SR-0019aB-5j; Mon, 21 Nov 2022 17:15:43 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ox9SQ-00BS6W-Bu; Mon, 21 Nov 2022 17:15:42 +0100 From: Geert Uytterhoeven To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2] pwm: Move pwm_capture() dummy to restore order Date: Mon, 21 Nov 2022 17:15:41 +0100 Message-Id: <96b39e1fe0e0c239d56ce321ccbf62cd38133803.1669047294.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750123288958939997?= X-GMAIL-MSGID: =?utf-8?q?1750123288958939997?= Move the dummy pwm_capture(), to make the declaration order of all dummies to match the declaration order of the real functions. Signed-off-by: Geert Uytterhoeven Acked-by: Uwe Kleine-König --- v2: - Add Acked-by. --- include/linux/pwm.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/linux/pwm.h b/include/linux/pwm.h index bba492eea96c5552..991ecfe1a85d3a98 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -440,13 +440,6 @@ static inline int pwm_config(struct pwm_device *pwm, int duty_ns, return -EINVAL; } -static inline int pwm_capture(struct pwm_device *pwm, - struct pwm_capture *result, - unsigned long timeout) -{ - return -EINVAL; -} - static inline int pwm_enable(struct pwm_device *pwm) { might_sleep(); @@ -458,6 +451,13 @@ static inline void pwm_disable(struct pwm_device *pwm) might_sleep(); } +static inline int pwm_capture(struct pwm_device *pwm, + struct pwm_capture *result, + unsigned long timeout) +{ + return -EINVAL; +} + static inline int pwm_set_chip_data(struct pwm_device *pwm, void *data) { return -EINVAL;