Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3619687pxv; Mon, 5 Jul 2021 01:33:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgSR+y4xLKjg6zBak8DL3WjoM62NOFn3CXdUwHWbmpooNEvkgTlmXQpTQIUxQr71ZRzbce X-Received: by 2002:a17:906:9b87:: with SMTP id dd7mr12603925ejc.41.1625473985121; Mon, 05 Jul 2021 01:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625473985; cv=none; d=google.com; s=arc-20160816; b=QbGrazXv+JsepZS0lHhqlGzjmEamKsIyUWlq00tyRXJo+saFXhRWFomjr5NHpyYSbX zFeWOp4DXynUwPcf9AmKjX87IyVTT5+KgdnhJWEJuzFNn5OSJ18MmDNjF2zwbbVLh8Ev vkA2A2Aw4KWGUrIgUvVMAB/c9zahkoVoKjwW3PO5x5qMedwWr+YOJqQGPvkOP4PQmDmk 3AOXsH3a3Inm2/xJCmjuDLfU0y/xNn6DZ/aOie14QUBZgjYzdq6LHGOV1Yz82/VsK0Fa /WmhQYJWKcCh0XzLv+VSTpQLFox5jR6bierkSzMir3FU1zS/6Et674NTAvWTp9Zl3nf+ GoKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=NhNZhGw9K6kvc+TJwJornjCKfWsJPuHyJ5mvvjij8+U=; b=hWZ3b5NGuN1o5iTUaQqyaRpq/aL5HSdU7+AFPRXyzygpj62Mqpe7tHrt3lwUqsKt+9 jRq9u7HgEIpRi0y6guxyeKNr9FFZ3rf2NnUZYwQEkES9ppdRZ4HIHm2Is4GfGdVGVm4J oqX/P0Q4mHZ8vqIxgx8f9iLVTANQahvPrAAS9MWDdNBaaAde1KvqPDH5kWe/spNG+4NO ud9fb4hhp7qYXqWLJE/DVMOO+wPRprBYXobvbie6ZWemu4wvGDjsNwiZIZOYNBj9WQIp mzDdYw9JEaVDbZ8gjIn6l2vRWdWnF6ZLr1UCgtfyU8POkhVaUTV1s87u2XtR7Z76noKC 2IFg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qa37si6007347ejc.683.2021.07.05.01.32.41; Mon, 05 Jul 2021 01:33:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230187AbhGEIeY (ORCPT + 99 others); Mon, 5 Jul 2021 04:34:24 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3354 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230085AbhGEIeX (ORCPT ); Mon, 5 Jul 2021 04:34:23 -0400 Received: from fraeml711-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4GJJTP1dRRz6H8Lx; Mon, 5 Jul 2021 16:17:45 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml711-chm.china.huawei.com (10.206.15.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 5 Jul 2021 10:31:45 +0200 Received: from localhost (10.47.85.51) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 5 Jul 2021 09:31:45 +0100 Date: Mon, 5 Jul 2021 09:31:29 +0100 From: Jonathan Cameron To: Lee Jones CC: Jonathan Cameron , Andreas Kemnade , , , , , , , , , Subject: Re: [PATCH 2/4] mfd: rn5t618: Add of compatibles for ADC and power Message-ID: <20210705093129.00005aab@Huawei.com> In-Reply-To: References: <20210703084224.31623-1-andreas@kemnade.info> <20210703084224.31623-3-andreas@kemnade.info> <20210703170405.60828c57@jic23-huawei> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.85.51] X-ClientProxiedBy: lhreml710-chm.china.huawei.com (10.201.108.61) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 5 Jul 2021 08:36:08 +0100 Lee Jones wrote: > On Sat, 03 Jul 2021, Jonathan Cameron wrote: > > > On Sat, 3 Jul 2021 10:42:22 +0200 > > Andreas Kemnade wrote: > > > > > This allows having devicetree nodes for the subdevices. > > > > > > Signed-off-by: Andreas Kemnade > > > --- > > > drivers/mfd/rn5t618.c | 6 ++++-- > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c > > > index 384acb459427..b916c7471ca3 100644 > > > --- a/drivers/mfd/rn5t618.c > > > +++ b/drivers/mfd/rn5t618.c > > > @@ -24,8 +24,10 @@ static const struct mfd_cell rn5t618_cells[] = { > > > }; > > > > > > static const struct mfd_cell rc5t619_cells[] = { > > > - { .name = "rn5t618-adc" }, > > > - { .name = "rn5t618-power" }, > > > + { .name = "rn5t618-adc", > > > + .of_compatible = "ricoh,rc5t619-adc" }, > > > > Odd to have a name of 618 and a compatible of 619. Why? > > Definitely deserves a comment if this is necessary for some reason! > > Actually this is the norm. We have lots of drivers named after the > *first* device they supported before expansion. Ah. I'd missed that this cells array is specific to the 5t619, though if the driver is the same I'd also expect it to be needed for the 5t618 entry. > > > > + { .name = "rn5t618-power", > > > + .of_compatible = "ricoh,rc5t619-power" }, > > > { .name = "rn5t618-regulator" }, > > > { .name = "rc5t619-rtc" }, > > > { .name = "rn5t618-wdt" }, > > >