Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17226184ybl; Thu, 2 Jan 2020 01:03:56 -0800 (PST) X-Google-Smtp-Source: APXvYqz+f6PHsbSAXAWgkdTucdgHLVtMeeP7L5cn8UyY5GSpxwciNUUkTJERMYPJvPjl0bno2c3W X-Received: by 2002:a05:6830:1555:: with SMTP id l21mr84977424otp.41.1577955836091; Thu, 02 Jan 2020 01:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577955836; cv=none; d=google.com; s=arc-20160816; b=MsKJoLC2QsN7fmf7b5t8jUS/Ie4AFOacfOD11aexf0rEdr8hDcATwF5vMz4qLXnw+8 XyDp/jAzau1H/2fk5r/BTf+6W1nAtQk5fFJ+oTht0np19SQ5A8Hp0a2MobVY+1SdizG0 uWIBTzq/QKfOgZy2VBTsmRzm3/g9Lhfl3ejBuAnH/CltauzGyX0g/xaZ+XI2lFOYLpFL 3TLaZ/edUMqG1v5ek439gtFrmR8jtsGnGLW/eKOwktHYM6iyL7ixSsYmQBhzfF+FDAhu BqJpeUlMNggkBjjNTEQowyuQC3dtHWtJgGI/WME/xpZl4p+h0ojcFMOYEEu4zIDF+WOo N/hA== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=KG5wsHgrhZl10PEHCnPs6GHV74q8j9w1qmh4P5J1XhM=; b=RBtmkSVpyQPi7SjsU+6KSmDfuCQZ/+3RVBcGvi86oM11VJ8YTOdxR2mOAqe+0Hwplc T14zxfkDZ0NkkRPMQlSv12XGbr23KY0rPFBBwmoaFdTY1fSb+hDrYCSg65OdWU7Y4+ek avMu11/0+YqChMtCfrbvTgHFCjh0BavD62ZvIAdjde4EDDpUk1RuGol4Dma6RxlIQ5cW 1kq51wNHLiUNKR+oK4JbLsNXQk3d8BuSrQe5f5KD6rt0aM8YobGow+BruDFxOTtPJrXR LvgHhqbXrfVPvxNLbsW/9mTSDSfCBA9m5/c1iLsgPCyWn3xdZxiJIm7vVc2wAlb7T7ak fHpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PuSL3Oqd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w7si28403206otq.250.2020.01.02.01.03.42; Thu, 02 Jan 2020 01:03:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PuSL3Oqd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727924AbgABJCn (ORCPT + 99 others); Thu, 2 Jan 2020 04:02:43 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:54347 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727874AbgABJCn (ORCPT ); Thu, 2 Jan 2020 04:02:43 -0500 X-UUID: 3b45a37d9a7040bcb5984861a44b0020-20200102 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=KG5wsHgrhZl10PEHCnPs6GHV74q8j9w1qmh4P5J1XhM=; b=PuSL3OqdJRpGb4HpMtfHs36bBtT1VMGRcTyr7zfyrJUGM6tyDmmR9SWb91ktipRYnTx7stxLQ1a5wB+U35/9pLD+t5jNnI9V5gcSiHprQoN8s3R6ziz1unHRZwHfXonSElVQx1cqj3pG6CQJseJGf4M9NmJExVs5w4M4lssf1hM=; X-UUID: 3b45a37d9a7040bcb5984861a44b0020-20200102 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 1303894059; Thu, 02 Jan 2020 17:02:37 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 2 Jan 2020 17:01:47 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 2 Jan 2020 17:02:38 +0800 Message-ID: <1577955756.23575.2.camel@mtksdaap41> Subject: Re: [PATCH v7 1/6] Check gpio pin number and use binary search in mtk_hw_pin_field_lookup() From: Yingjoe Chen To: Light Hsieh CC: , , , , , Date: Thu, 2 Jan 2020 17:02:36 +0800 In-Reply-To: <1577799707-11855-1-git-send-email-light.hsieh@mediatek.com> References: <1577799707-11855-1-git-send-email-light.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 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 T24gVHVlLCAyMDE5LTEyLTMxIGF0IDIxOjQxICswODAwLCBMaWdodCBIc2llaCB3cm90ZToNCj4g MS4gQ2hlY2sgaWYgZ3BpbyBwaW4gbnVtYmVyIGlzIGluIHZhbGlkIHJhbmdlIHRvIHByZXZlbnQg ZnJvbSBnZXQgaW52YWxpZA0K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