From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754658Ab3KVKIK (ORCPT ); Fri, 22 Nov 2013 05:08:10 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:41201 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143Ab3KVKIH (ORCPT ); Fri, 22 Nov 2013 05:08:07 -0500 Date: Fri, 22 Nov 2013 10:07:57 +0000 From: Lee Jones To: Krzysztof Kozlowski Cc: MyungJoo Ham , Chanwoo Choi , Samuel Ortiz , Anton Vorontsov , David Woodhouse , Liam Girdwood , Mark Brown , Grant Likely , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Pawel Moll , Stephen Warren , Ian Campbell , Rob Landley , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartlomiej Zolnierkiewicz , Marek Szyprowski , Kyungmin Park Subject: Re: [PATCH v3 1/5] mfd: max14577: Add max14577 MFD driver core Message-ID: <20131122100757.GI23067@lee--X1> References: <1385109972-28059-1-git-send-email-k.kozlowski@samsung.com> <1385109972-28059-2-git-send-email-k.kozlowski@samsung.com> <20131122093118.GH23067@lee--X1> <1385114292.29083.8.camel@AMDC1943> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1385114292.29083.8.camel@AMDC1943> 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 > > > +static struct mfd_cell max14577_devs[] = { > > > + { .name = "max14577-muic", }, > > > + { .name = "max14577-regulator", }, > > > + { .name = "max14577-charger", }, > > > +}; > > > > If these all support device tree, shouldn't you be populating > > max14577_devs[x].of_compatible too? That way the MFD core will > > automatically setup your dev.of_node pointers for you? > > Only the regulator driver uses bindings from DT and it searches for > "regulators" node in parent's node: > np = of_get_child_by_name(max14577->dev->of_node, "regulators"); > I can add of_compatible but I think this won't be reflected in actual > DTS. Well it should be. I'll reply to the other patch too. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog