Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp388816ybb; Wed, 8 Apr 2020 01:43:53 -0700 (PDT) X-Google-Smtp-Source: APiQypJolBTbfIT7b2YAImZackmOfUpYuFLRZsLWNLUVD4Xxvg9PTRr4CgBVR3M+QQudqPtcSxwQ X-Received: by 2002:aca:4082:: with SMTP id n124mr1549596oia.112.1586335433251; Wed, 08 Apr 2020 01:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586335433; cv=none; d=google.com; s=arc-20160816; b=iC8YCnVg3rflpMXUFheTPc5rbrI4BL8HaPoLtJjhK4SkMwsaYyYBlHy6BXednakejZ FIw5WPlxNOS3GurHOk+K4vX85pSoyFB+9K6QqXLnYSX70lRvHlhlMB43pDcWgQzc0r9v 90XbIr8rYxcz0M2zt4BTg7f/JOJXy5bHDaden3WHa9v20APM53bt3VovXcQvDoWudEuT gMiFsBT5kyi4b2r5766e9XqY7lwxREEJicp5OPbWt3KawKCETqRD7n1g+3ZvNOjG4AVU uwmm4PZ9Ot9DPvA0YUcdTn9ZGdz75cY9QivflQQN1Pktfja8hKPuz5GECWboS3rNssiS 0nKw== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=fGKVeJMpPPedNFBW5Z89bG65lS398KakOP6xziYFSsc=; b=rr14/TO4LSuiYzp5429qmF+WNyksJtkOA0LClAOAJhKLE7/gydDL+nYwo1HXTNLLr0 xaETFoAvz8u1ZslYDu6y9Xj5Rp+WsmyiGLglJTpjRoveYsc5+QcmujAJR8ISRoS5ptNF 3Lk0HhEYeJdRAX5VIGO5qTkapDwYN+AtIqTPEfdVDGLp8xRsEQsElrbDL9WSvTcf1m/p tJFSdSoxm6zZDQ1J8vTOaktyCgWggtKpEWIgD8Q+vlW5tZXchUHXPuHK5b7fVj+2B2dM 5hvt75j+Cf6tFSzb5BUZGMEz8VOpnLt/IHfPLISfJHDHTIryiz3Gk01VoW8esIxz9p0h BRzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="H/wN0dz1"; 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 s139si2160753oih.7.2020.04.08.01.43.38; Wed, 08 Apr 2020 01:43:53 -0700 (PDT) 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="H/wN0dz1"; 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 S1726901AbgDHIM7 (ORCPT + 99 others); Wed, 8 Apr 2020 04:12:59 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:63866 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726642AbgDHIM6 (ORCPT ); Wed, 8 Apr 2020 04:12:58 -0400 X-UUID: 49c8344e8e514be39abfa3c965f19bb2-20200408 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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=fGKVeJMpPPedNFBW5Z89bG65lS398KakOP6xziYFSsc=; b=H/wN0dz1gaqTobfimzYR8IcVbDrcAEc+451udtbn5nGthbYmyHpLBNWt3qwMELR5o4EEPa8qBPxBBSsBHG9eV7lX0FMrMlX0grVeap7U+CFrbUVL1l4UykufPFu+Sd9+/keuGgzBd5wRfQx0QFTrkmYvzVd/4n8na8gTunRcALI=; X-UUID: 49c8344e8e514be39abfa3c965f19bb2-20200408 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1789487845; Wed, 08 Apr 2020 16:12:53 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Apr 2020 16:12:49 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 8 Apr 2020 16:12:49 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Alexandre Belloni CC: Nicolas Boichat , Mark Rutland , Sean Wang , Sebastian Reichel , Eddie Huang , Alessandro Zummo , Kate Stewart , Richard Fontana , Frank Wunderlich , Josef Friedl , Thomas Gleixner , Hsin-Hsiung Wang , Ran Bi , , , , , , , Subject: [PATCH v12 2/6] mfd: mt6397: Trim probe function to support different chips more cleanly Date: Wed, 8 Apr 2020 16:12:07 +0800 Message-ID: <1586333531-21641-3-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1586333531-21641-1-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1586333531-21641-1-git-send-email-hsin-hsiung.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: FEDB43AB2ACB42064A2DB5C5D7CC07444166C3514C64B30D112F886F1894AF732000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: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