Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp401852ima; Fri, 1 Feb 2019 05:13:15 -0800 (PST) X-Google-Smtp-Source: AHgI3Iby8eVzICb5EWOtUDQoms3F/0gVgDXowGEGLusWUGECQKCL8l7hWZzXM/iD0jRyo636qMPp X-Received: by 2002:a63:9c1a:: with SMTP id f26mr2261531pge.381.1549026795614; Fri, 01 Feb 2019 05:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549026795; cv=none; d=google.com; s=arc-20160816; b=smlb209aqwhirQaOCLPvu/h7nMQMy7+EWnETobsnRIJ7CGwfSbfB9Gnjrk2yxyGJnT Wp2notAx0pBtPC39FAG9Qar8vEz9O4DvoV8615OcGtB2FySjMVj0cBlYbiK7J9SPs/go ok8yxj1qPsYgpNPgekPUizuqRYhPzTXwoBy6TGT6hRIQxPxwmWnZ5qNrq6c7hksz/h+C EAX0p9iSRmevV2FfGywq/l/wjDJxokq5E7n4vZ+GSnT+UwwJMoIkl/GEnUhdY8gTdATE TtuYz2Q9avhigJwqDmSF7epcHIx6Zanm7iBVkDnxpg2e8mSijrkKntRm8OIR7xzh8Erj iN8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sgQRooGZozZW3iAo+OQkbQNFgu3wdNLM7Zl+zazJbcU=; b=yI0chJxAtesdfdk4nBt0p8USiSVlW3rQDJ1l25QAhJhyqmz76gc+JgeKkLk3yNmssY +6p/mVfmQ+Pg6hWqUMhEUSI9pJ4CV3EC8LQLFn5iTdRF2C82ywGwck6XrDGyA69DgB51 NfbsEcpVR/W2x2hGlDIepFdGWHXpJ9SCowLSThw6JkDb8XQLN90k8TkLDIH/IB/ScG3g kHO1xezIRMq0chtBEKXdEudubP+yaSuajPoIQmMCf4GaC7rnlBtEd+m2SVaQgk3lTp9y xGm/S6TfA1GtMK7Q4uWQLPhZnKbx5JFycSxgEzyggC3CBXwIe8Ym42KuG0oNknRulVq7 jupg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=k25pvIRO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si2695735pgl.108.2019.02.01.05.12.51; Fri, 01 Feb 2019 05:13:15 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=k25pvIRO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728637AbfBANF1 (ORCPT + 99 others); Fri, 1 Feb 2019 08:05:27 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:47762 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727690AbfBANF0 (ORCPT ); Fri, 1 Feb 2019 08:05:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=sgQRooGZozZW3iAo+OQkbQNFgu3wdNLM7Zl+zazJbcU=; b=k25pvIROhtP8FI0S0PiHssWb4 H1tw5zUIVaFbHQVWdaL8AhiIjovj5dFZDflGcptpkEy35Q8r/S5O3PQq0aDfNB6dbGSXTnwhYNcU+ 0JgfXAYc30zqApCwgPzGBM/KCeY+5c1DCqU+4YOnKJLriuYnKWDTfOMfsYSmZeiXKgEIg=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gpYVU-0005Da-3W; Fri, 01 Feb 2019 13:05:20 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 44DD2440082; Fri, 1 Feb 2019 13:05:19 +0000 (GMT) Date: Fri, 1 Feb 2019 13:05:19 +0000 From: Mark Brown To: Baolin Wang Cc: Arnd Bergmann , Rob Herring , Mark Rutland , Olof Johansson , Orson Zhai , Lyra Zhang , DTML , arm-soc , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH 0/4] Add new device nodes for Spreadtrum SC9860 platform Message-ID: <20190201130519.GH20797@sirena.org.uk> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J/zg8ciPNcraoWb6" Content-Disposition: inline In-Reply-To: X-Cookie: What!? Me worry? User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --J/zg8ciPNcraoWb6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 01, 2019 at 08:05:30PM +0800, Baolin Wang wrote: > On Spreadtrum platform, we use one mfd driver [1] to populate the > SC27XX series PMICs including SC2731, SC2721, SC2720 and SC2730. So we > use sc27xx to be compatible with different PMICs' devices, otherwise > it will be difficult to define the mfd cell arrays in mfd driver. Do > you have any good suggestion? Thanks. You can just list all the individual device names in the of_match_table for the MFD and then it can bind to any of them. You can always map them onto the same behaviour in the MFD driver if they are identical =66rom a software point of view. --J/zg8ciPNcraoWb6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlxURA4ACgkQJNaLcl1U h9CmfQf/YnVOFQBR/ZdKkjt44v9jtogltQorJrsUP4SjfNU6eEDwFekGutld//0B ymGkp7vX9jhWfoLvSl/U8R8iHdhuiI9n/0nE5ryQAPoPc9/CFTpDi+V3F5eR0OR4 CvahpdUXfPJ81Z5NjIFfpeAw086b1kzrceNnPLk9+r6L1jZSu6g4i5r+b8nLGUih 2I3PngIQvW+RKpXm8cpQLnIbyuec7nsQM2yoZi2Lsf4MM3u5saLEVakirb5vND7c M/Y8uhtiKXQIzeOvi3LtZWMorRulBycpDIT9FjQLvUMDFVQrbtrCIGcaBGnWyq19 bV2dEgsE4ucI6gbuDOn9xMxpO7tUgA== =zaWr -----END PGP SIGNATURE----- --J/zg8ciPNcraoWb6--