Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1162678pxa; Thu, 20 Aug 2020 04:24:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnaQ+f3sXZmbFp3BK4nXFIxwLCjC57ewNLLStqb4+7a6knjHcYbPcM19ienwvANgF17tWL X-Received: by 2002:a17:906:2451:: with SMTP id a17mr2695985ejb.274.1597922682648; Thu, 20 Aug 2020 04:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597922682; cv=none; d=google.com; s=arc-20160816; b=L+PMvGJ7SKAo+hP/2VAa5X7CaOHOoUYR7oh0Fm1mBPEkEFPOEivsnLsTO9oPAGOIoB cd/hvHqv1/+lCp9ym2xCp0uQiR4KvWZljPEmj20p4Zz4xFXtwXaCYHqvRgI78iHmkrVt nZNwnRiZzrsiuZBtvS1UTQubpO7NGGowMxN2WJgNlufj+1iKSVhG7K+w2fkodQW9AalF 3xXj7GwDP6j2tjvsByk94EUewhjEv16hMggrgQy1xLWbkk1a+S/hN7aFXQr4xsjZr4PY UDglQVfVljQhgtkmM+4No3had0q9VwHb/0eeyBjpWsVYgElQPGn8yZRFJx7R9rI8RpNg JLMg== 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=S1Y+0IiFS8nO4Trq+5CEEIC6sfUAEGt90ibukYT0b9E=; b=a7LM2Yl8fRnqb+80w4kX3m8l1A2/b8Jez5B/SxnIVqfyDgJ6Zj4spXOEUUXz68pUdk At9nLrVFk1YWWyDz17Y2nwtGBvgJwohl3TWcaJvgwP9X8ahUOM4yEqTKYSRVPMFGm/VW yFBsgjWVc6xTD+mtlDtwNSzezzi4CKUmWoY9t3ElYc4hD5F0wJpBsM4Ib8nf6iGGZiS+ ktPUctItfHaxa+28AQVrYn92tdMDi72bqP8RFYQSw/MFhQXKgEzDz360qCiWPUG7hb9t C1ine1ps26mYnq1f+vqfgLmeVga8CgIbtlf0uIf4rLZyg5VR6kybJ2xXXd8YbPG7YgG5 T3Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jGbkrces; 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 y102si1078329ede.258.2020.08.20.04.24.18; Thu, 20 Aug 2020 04:24:42 -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=jGbkrces; 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 S1729454AbgHTLWw (ORCPT + 99 others); Thu, 20 Aug 2020 07:22:52 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:57527 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730549AbgHTLWd (ORCPT ); Thu, 20 Aug 2020 07:22:33 -0400 X-UUID: af4d0888a4f647dab8a88998ad979dc4-20200820 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=S1Y+0IiFS8nO4Trq+5CEEIC6sfUAEGt90ibukYT0b9E=; b=jGbkrcesOI3wVd2mXfBAN9w/vHttcOMif6TLelF36AnrYNIbu55x54Z9wbExfm2m7KZQkrxUyQgsAXig34choBQ3fGTPRRg37vcuOuxQrWJdOP5di3NTP4Ep5GB6lvuAx9O0gQE5iA+1Jkd7fcO70uTcZwOJMbLMQMwQKXvjVX4=; X-UUID: af4d0888a4f647dab8a88998ad979dc4-20200820 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1994942789; Thu, 20 Aug 2020 19:22:31 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Aug 2020 19:22:27 +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, 20 Aug 2020 19:22:27 +0800 From: Hanks Chen To: Sean Wang , Linus Walleij , Matthias Brugger CC: , , , , CC Hwang , sin_jieyang , Hanks Chen Subject: [PATCH v2] pinctrl: mediatek: check mtk_is_virt_gpio input parameter Date: Thu, 20 Aug 2020 19:22:25 +0800 Message-ID: <1597922546-29633-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-TM-SNTS-SMTP: F88F058F9D588338A2C62533E12951333599251915843B08FD4ABEB0C93057CF2000:8 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 YXNlDQp0byBmaXggdGhpcyBib290IGZhaWw6DQpwYyA6IG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