From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757059Ab3K0QNd (ORCPT ); Wed, 27 Nov 2013 11:13:33 -0500 Received: from mail-yh0-f51.google.com ([209.85.213.51]:61852 "EHLO mail-yh0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756809Ab3K0QNb (ORCPT ); Wed, 27 Nov 2013 11:13:31 -0500 Date: Wed, 27 Nov 2013 16:13:23 +0000 From: Lee Jones To: Mark Brown Cc: Krzysztof Kozlowski , Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Rob Landley , Samuel Ortiz , Liam Girdwood , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Kyungmin Park , Bartlomiej Zolnierkiewicz , Marek Szyprowski Subject: Re: [PATCH v5 1/2] regulator: max14577: Add regulator driver for Maxim 14577 Message-ID: <20131127161323.GS3296@lee--X1> References: <1385559982-32039-1-git-send-email-k.kozlowski@samsung.com> <20131127152042.GY14725@sirena.org.uk> <20131127152358.GP3296@lee--X1> <20131127154221.GZ14725@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20131127154221.GZ14725@sirena.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Nov 2013, Mark Brown wrote: > On Wed, Nov 27, 2013 at 03:23:58PM +0000, Lee Jones wrote: > > On Wed, 27 Nov 2013, Mark Brown wrote: > > > > + { > > > > + .name = "max14577-regulator", > > > > + .of_compatible = "maxim,max14577-regulator", > > > > + }, > > > > Why is there a compatible for this at all, would this ever appear as > > > part of a different device? > > > For automatic assigning of it's of_node. > > > In previous incarnations of this set it was done manually for some reason. > > The usual thing to do is of_get_child_by_name() on the parent to get the > container to search in. What do you mean when you say 'usual thing'? Only the max8998 does this currently. IMHO the better way to do it for MFD devices is provide a compatible string and let the framework does the rest for you. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog