Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp980893pxb; Wed, 6 Apr 2022 05:58:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCkgmlkYE8WLVpNyq2EChdZRi3fjgLbCYpZWsKoHEXs5+5cB8nien4w9qQxZPqE6j+R8/U X-Received: by 2002:a63:2f41:0:b0:382:26ba:8855 with SMTP id v62-20020a632f41000000b0038226ba8855mr6786968pgv.310.1649249909194; Wed, 06 Apr 2022 05:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649249909; cv=none; d=google.com; s=arc-20160816; b=OABi3gbx//mzqN2TMD/JX1KfxzQaB9NbcYS+XNmztRGRtHd1MB9SWDg47AWC+JTNDH tP89jmSBoGoL4a8Zjyfko8QwzQAEabp3eWBmE72+bIg4cljtHfQ83ii37uQwmGiM2s78 5spHfd+Ma59YH/gEu1uFBJeepIOpSKGzov3+2gDixsLCPAV/Ipkl6rnfX5ctv9EDiCcB m8fjQahjvqZh835A+L02rW25z69BrA//QCcZnfBwbui9xKVasIw4EPUvBPEXAil8rdPe //JBI9Dl6fLYqNDX7QwvaFzdw6vm0E/3XrII5uRksghCRS78rJRn8d4PoAMMEWdrYaNE 1Y8A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MhPgU5xAKPgy9ec1fPuk8YFKxlkxVuDqVyL5oSYfgYg=; b=SnBRUxzZrIxI6JrCjiE7Y44a22LzcOD7oEtKfJgCVbRhYrraNSMldh3bxMqu/ZbA8h vEOkN4DNS6uQVeUZacVUAtoUa+Lb8RiF/7jxA2l2cyJTrnd2t8as2PVFghFrKRNOP0Oj +ynJ8J5qa6v+8UF3RPck1bMQ08UU48f3U+UFh1trOIwXpCpbCKflAZLdZYf9GMH013Pi EDsxzx99sqAY5kOBYY8PoH8MVF5GVsZ6kMMMUA3CcdR++p6VwqRjYiG12KfmRtcMoEyC E5ftzH1NrK/iJTTUhddCJjsBKYEozsOsWh97cZSZDlhjeJ9khVISkV8wnH6h0XphCFrb IbpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1v6LPeZd; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j1-20020a170902da8100b00153b2d165basi16421597plx.450.2022.04.06.05.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:58:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1v6LPeZd; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 31B3663689E; Wed, 6 Apr 2022 03:10:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241688AbiDEUc2 (ORCPT + 99 others); Tue, 5 Apr 2022 16:32:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349485AbiDEJtz (ORCPT ); Tue, 5 Apr 2022 05:49:55 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B8A421BF; Tue, 5 Apr 2022 02:47:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 8EE24CE1BE5; Tue, 5 Apr 2022 09:47:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A91DBC385A2; Tue, 5 Apr 2022 09:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152038; bh=LtbL+NctI2lPnOdJskINY7IUF608Dvnr7ibw88k9yPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1v6LPeZdOQn0Dzoam0+G6Nk0t3slNnP3tRybiWyHwFEFOzs2t+q40Ug8wi8mR40xM UgS+BCpMcT/x67hsbFnI7/5a9qldaLLlykxjLnpePorUnjLcF/l/BcO/fVcefxLHLh luOHDXzas2YKYWnhi1E83ispN8NhDJBz/7wd/I6I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , AngeloGioacchino Del Regno , Linus Walleij , Sasha Levin Subject: [PATCH 5.15 633/913] pinctrl: mediatek: paris: Fix "argument" argument type for mtk_pinconf_get() Date: Tue, 5 Apr 2022 09:28:15 +0200 Message-Id: <20220405070358.814319010@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Chen-Yu Tsai [ Upstream commit 19bce7ce0a593c7024030a0cda9e23facea3c93d ] For mtk_pinconf_get(), the "argument" argument is typically returned by pinconf_to_config_argument(), which holds the value for a given pinconf parameter. It certainly should not have the type of "enum pin_config_param", which describes the type of the pinconf parameter itself. Change the type to u32, which matches the return type of pinconf_to_config_argument(). Fixes: 805250982bb5 ("pinctrl: mediatek: add pinctrl-paris that implements the vendor dt-bindings") Signed-off-by: Chen-Yu Tsai Reviewed-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20220308100956.2750295-4-wenst@chromium.org Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/mediatek/pinctrl-paris.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-paris.c b/drivers/pinctrl/mediatek/pinctrl-paris.c index 5bdf8b7acd23..bcf359256ed4 100644 --- a/drivers/pinctrl/mediatek/pinctrl-paris.c +++ b/drivers/pinctrl/mediatek/pinctrl-paris.c @@ -184,8 +184,7 @@ static int mtk_pinconf_get(struct pinctrl_dev *pctldev, } static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, - enum pin_config_param param, - enum pin_config_param arg) + enum pin_config_param param, u32 arg) { struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); const struct mtk_pin_desc *desc; -- 2.34.1