Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1236727pxa; Thu, 13 Aug 2020 04:16:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN/1iXapoT7pm0i0SYtQGfbH58rwMctlH+7IYg6lsor+5sxQFee0MBXoyWFKIIe7wbTnm8 X-Received: by 2002:a17:907:4064:: with SMTP id nl4mr4226322ejb.342.1597317363667; Thu, 13 Aug 2020 04:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597317363; cv=none; d=google.com; s=arc-20160816; b=ETQgabTa9jOA85JMszRui6y/lxm+/ybUi4x54881WukTl1bJ8U8UKxmrcONFN4+XGY qZOYim6LheGHyfjIVigKEoGqqycxg9GQhYqBkMNM9rfvf8y5WRo/lQhjZ2N1xbxdLHn/ z9R9nQMwfyfHmuxWqVOu9ML5cFzc7nkDqb0hiGQ8iR5GOpbvynrNGX78POyTI0lLhkDV SdqhG8XVY7e9/xEbw3cJKq7WDrp0RnB7yIxW6QSMGmOTyDUwtFV9rQ1MspUtvK2zEuVO 0HQ+vkv4XCec2s4zPlqanCoLBdh5wAwag9mmJwRHIRsUn8h3Yk1PfurkYKr+TrrxmJQw ealQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+eK+7a9oUt+gCi+OClb3sCo/w04UAPvGt6ggiOIBy5Y=; b=FcD5PEXtAlzZOvKfs2ZDZVkcmK3gTdgCfw6dwAXgU+LmrMRp9YGDx0CUXAmnxvR2TB wuGMhxQ3IP6aSx8GI4NiDswVon3YXCteshqx843D0biqAjSacvqcX3Cdw25AN5DfgySw XlcI6t7j2DKwUy/zufukkk6tPZ+2ccZ0sAoZRfnHUtGN9JxnXARY1uocl/v+LVBO4a/U w9uyjQuO/Xc3dYG7aw9H1n/pNkfqMZJEkb8Aby4T4SwriiGdclSiZrEuH1AvyytoWzwE 5C9RP1+GqI1sEHpsi8zxnIFqRxviaoHCNM1fXx2mOCSwIiU8t2XD1TWx0nNLJjPWEWeY xZHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VnEuwXkh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si3066297edw.303.2020.08.13.04.15.40; Thu, 13 Aug 2020 04:16:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VnEuwXkh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726680AbgHMLOc (ORCPT + 99 others); Thu, 13 Aug 2020 07:14:32 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:2831 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726568AbgHMLO3 (ORCPT ); Thu, 13 Aug 2020 07:14:29 -0400 X-UUID: 5e35a78db22944ffbaf6613ebd1cd735-20200813 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=+eK+7a9oUt+gCi+OClb3sCo/w04UAPvGt6ggiOIBy5Y=; b=VnEuwXkh79pfUlcx6QEk2FIj88mSm5hdziv6mkeygQiB9bXlCyXME1pJMWX5Bqj7+lvioWeZoJTzQ4jV2u9qfnpBL21qZd6omRiraFQt9+UYUIRLnKRUkFIHlP3m1c8OBRltSC2z+R/A/tvSMfdEo8s7yFOBDC4IyLKBdbbs9XU=; X-UUID: 5e35a78db22944ffbaf6613ebd1cd735-20200813 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1151618276; Thu, 13 Aug 2020 19:14:25 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 13 Aug 2020 19:14:22 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 13 Aug 2020 19:14:23 +0800 From: Hanks Chen To: Sean Wang , Linus Walleij , Matthias Brugger CC: , , , , CC Hwang , sin_jieyang , Hanks Chen Subject: [PATCH] pinctrl: mediatek: check mtk_is_virt_gpio input parameter Date: Thu, 13 Aug 2020 19:14:20 +0800 Message-ID: <1597317260-24348-1-git-send-email-hanks.chen@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Y2hlY2sgbXRrX2lzX3ZpcnRfZ3BpbyBpbnB1dCBwYXJhbWV0ZXIsDQp2aXJ0dWFsIGdwaW8gbmVl ZCB0byBzdXBwb3J0IGVpbnQgbW9kZS4NCg0KYWRkIGVycm9yIGhhbmRsZXIgZm9yIHRoZSBrbyBj YXNlDQp0byBmaXggdGhpcyBib290IGZhaWw6DQpwYyA6IG10a19pc192aXJ0X2dwaW8rMHgyMC8w eDM4IFtwaW5jdHJsX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