Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4520532rwb; Mon, 21 Nov 2022 08:32:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf4hcLs2kmltSh6jW4n0pMWXK7fLQ+iRd/cZZ0r4GUe8bJ8rWIpeVjZWvhclhJUsWLlS5E9X X-Received: by 2002:aa7:820e:0:b0:573:ab15:1d6f with SMTP id k14-20020aa7820e000000b00573ab151d6fmr5722363pfi.9.1669048370322; Mon, 21 Nov 2022 08:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669048370; cv=none; d=google.com; s=arc-20160816; b=NJBcqgjjE5bk2QB0fD7tgNKu/xdEc+dwqSe5P2E1wk5lV5r0XnrYvkIxgEP13V2m0k HSE/rLKhkZGwwMGTqfTmJWj2m6WVutypxyVf/M3TWvjPVryKylYGkhxdIiWuUu9YC8e2 TQm07OtZ12tNB/fhisvXxabAj7mEPU9BE4V6fsC+GrcX51FEKeBZ3cqzKvJgMRIzWyma VTshKnj6Ejj+k7FfQaILv3yDcbDVOa9ObW2NpiplPMZj/tBXjK4yfmh5YRDJ21J8xVEP 15xkq/9BpdcX7sL8DVEwL4ZExlAxsR658JFdinUztJu+j2sVmrqQiSCniiKacNcJt0eT OocQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f5-20020a17090a9b0500b00218c7fa9324si444161pjp.53.2022.11.21.08.32.38; Mon, 21 Nov 2022 08:32: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 S229929AbiKUQPr (ORCPT + 92 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=20Kleine-K=C3=B6nig?= 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 Content-Type: text/plain; charset=UTF-8 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 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; -- 2.25.1