Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1219814pxa; Thu, 20 Aug 2020 06:02:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpJNn5fVLEnx+WOj7BD2sJIYrA1EtdSCRuOj/e1kpbwvKiCSH/0TLK13VmZLfN6TkRwja5 X-Received: by 2002:a17:906:264d:: with SMTP id i13mr3089378ejc.284.1597928548543; Thu, 20 Aug 2020 06:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597928548; cv=none; d=google.com; s=arc-20160816; b=OlCjuAWRGJZ2sQ4TXVVEs3WREaNxmZmLFmQQ34lqz0WufvtobVbDmBaW8J+hdDyWQF 0Q9xqocurBnc00wwsJOy6aqW3Kz5giIS2Dm/N1+ZSxJpyE0vpm6WEdpL/tmHL6ogTME0 8UsUqP6xTn46SA5+ipza4NbfTqZRWg/xZTZHcyLWl9dKPy2TDnfrgtZxKCYFAc6Nbrap Yso13eF/8KzGY2m5yNdRpPGY693mazzLbMRCCwutjD/msq7tF+CIXZismW+0PrpFgfl6 b/PZD2h/IHobxUS19roa4Xy9UK2G7MoOQBQNueBShjK4LrB95nYZmfX8vfTEta1XJ2NI AHjQ== 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=PEJq9o5rjHt9Tgt/ghXvLxkCSShvH3PLy1g95tCOzfo=; b=mpK4pdytjb7p7AFw8lDhEYOvABANxiVbsk4UR0U206ubXEIJ9jxjROfOeAOX3Q0nfx RJ+7UEYG9CbsRCw5eV4jGq1YD24KT6A97BnaShrj630pTBIWQzIsmP9Hz1keqeWAzr+T 4V2h8bnabujRRzy84EtWUvKgY2fOK12Lkgwua+OpBt0OwQ4FeaNjAjFUWHFIgifJgCjM cv8Ndr/risO0oBe5ALQA6zWviMZLdm/PoGX+DeHY+AxLzTGViGhhITX+VGLZdqqHpxwH bp6Z1+OF8xaWhoCiTyFNN+9R4tuUVed8iBAKfv2rJ3RvDNAmNsF5rIEAmT/6iK3ZvdlD BueA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=u4kmujXa; 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 e8si1181557eja.31.2020.08.20.06.02.04; Thu, 20 Aug 2020 06:02:28 -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=u4kmujXa; 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 S1729916AbgHTM6V (ORCPT + 99 others); Thu, 20 Aug 2020 08:58:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:54186 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729061AbgHTJks (ORCPT ); Thu, 20 Aug 2020 05:40:48 -0400 X-UUID: 1984987cbc4d4ab59f1cffc95a1863c6-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=PEJq9o5rjHt9Tgt/ghXvLxkCSShvH3PLy1g95tCOzfo=; b=u4kmujXaQXvIQTsiNtWhYp1Ir+63ck6qM6hUbYor08fTrvamxwsGwbRChhAqFPiLrA3xaTpNnbvg32Cg13H6mcCd2Sj711agi0uo1EFrzigGdJdgjUoNngR2Cj32wiXN3MUHrkEPJa3rJEvgTrgPTrBkHmKmq51H/c4Z4ZEzPE0=; X-UUID: 1984987cbc4d4ab59f1cffc95a1863c6-20200820 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1248855608; Thu, 20 Aug 2020 17:40:43 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Aug 2020 17:40:39 +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 17:40:40 +0800 From: To: CC: , , , , , Light Hsieh Subject: [PATCH v1 1/1] pinctrl: mediatek: refine mtk_pmx_get_funcs_cnt() Date: Thu, 20 Aug 2020 17:40:39 +0800 Message-ID: <1597916439-26376-1-git-send-email-light.hsieh@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 89E841128ED7E0737F0C5C3B513376298F38FFC82A08151051B83A73D1B33ED22000: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 RnJvbTogTGlnaHQgSHNpZWggPGxpZ2h0LmhzaWVoQG1lZGlhdGVrLmNvbT4NCg0KUmVmaW5lIGlt cGxlbWVudGF0aW9uIG9mIG10a19wbXhfZ2V0X2Z1bmNzX2NudCgpLg0KVGhlIG9yaWdpbmFsIGlt cGxlbWVudGF0aW9uIGFsd2F5cyByZXR1cm4gQVJSQVlfU0laRShtdGtfZ3Bpb19mdW5jdG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