Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7554666imm; Thu, 28 Jun 2018 05:50:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIN/7fZ80IKmVK7a9W45vI/sxDDZ2f4rTNtsPsr4CFaNprWzWg7Y511yA9e+ib9FglTNe4O X-Received: by 2002:a65:62c7:: with SMTP id m7-v6mr8618226pgv.286.1530190211519; Thu, 28 Jun 2018 05:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530190211; cv=none; d=google.com; s=arc-20160816; b=o70NE9Edftlzfsd5hGMyv1AZ23BjSuKQaVAfz/R+E5R+wZhI+vU9pDU3AbvLM42m9e jE6q03SHgCyi0891TNPupKQLDok+HjluPVrPIn241zBvUmicmzNm2Rr3borEFD/MZogU pBZuEkVD+UNOGcijki8Dnz2cGLNSkd9usRw8Xx4IkpusqsMxnhKj2yy8aLsPPy2ewXHz 3EJ7uDUp4b7/49mjLMND8vZOVVWLs7pU3Ts7tHUIxngiOIyciwDHB12jqCP7jB8YVHPM WtWL5Y7Zv2GRVWOdyOVZGc/itndyQWnWmZ+55DZFMdG3VP7sRfFyzKEKzhFEXKCzOJ2T NcRw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=S2f1JTylxkQ0EkCq+b5hNyFHkv6WX1V/sdN5w/SPIfY=; b=HvJLq82AdSJWsITQuFhcOaemoNGEukt/bAsDm2tVRoy3ks0tCZPeoSKDxscia97FJD UPhnrwcw9p6aeQ1VENRmddXTOuxlg58NO7d6Z3igmrC1xt6m60wTZR/wfwkykeVIfUHk otsQQCWoHWgmFqJpxHnYGTOq4ZCoE9N8s3fXTJIZfe0yZa9mXp+Im6FpB7RjyPpy/6Vb S0Kd22GNQLh2ZpB3ST+gbGsb6CvCzXfpouYxH/VlMmNSj9N/amo8SbD7NmO7j535Oi5+ VuvizirSudGulNpF9m8Oxh3nlvgLuaw6EtAeZgvOH53poBNgFMyNN0LgCnKMZodQUuPI EV7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h75-v6si3617591pfe.332.2018.06.28.05.49.56; Thu, 28 Jun 2018 05:50:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964921AbeF1MjF (ORCPT + 99 others); Thu, 28 Jun 2018 08:39:05 -0400 Received: from mail.bugwerft.de ([46.23.86.59]:55238 "EHLO mail.bugwerft.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752207AbeF1MjD (ORCPT ); Thu, 28 Jun 2018 08:39:03 -0400 Received: from [IPv6:2001:16b8:4699:cc00:6163:d7c:5db5:b655] (200116b84699cc0061630d7c5db5b655.dip.versatel-1u1.de [IPv6:2001:16b8:4699:cc00:6163:d7c:5db5:b655]) by mail.bugwerft.de (Postfix) with ESMTPSA id 317F028BFE0; Thu, 28 Jun 2018 12:35:48 +0000 (UTC) Subject: Re: [PATCH v2 4/4] power: ds2760_battery: add device tree glue To: Sebastian Reichel Cc: zbr@ioremap.net, robh+dt@kernel.org, mark.rutland@arm.com, szabolcs.gyurko@tlt.hu, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, robert.jarzmik@free.fr References: <20180628075540.1757-1-daniel@zonque.org> <20180628075540.1757-5-daniel@zonque.org> <20180628115246.6qqa3nwxwx2qpls6@earth.universe> From: Daniel Mack Message-ID: Date: Thu, 28 Jun 2018 14:39:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180628115246.6qqa3nwxwx2qpls6@earth.universe> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, June 28, 2018 01:52 PM, Sebastian Reichel wrote: > Hi, > > On Thu, Jun 28, 2018 at 09:55:40AM +0200, Daniel Mack wrote: >> The w1 slave device used by this driver now has a of_node in case it >> was matched against a devicetree sub-node of the bus master. This can >> now be passed down to the power supply core which will parse more >> properties from the node, such as 'power-supplies'. >> >> Signed-off-by: Daniel Mack >> --- > > Thanks for the patch series. Having proper DT support is a nice > addition. But instead of extending the platform device hack, please > merge the w1 driver into ds2760_battery.c as it happened to the > bq27000 driver already. The intermediate platform device is completly > useless and only makes things more complicated. > > Basically move all code from w1_ds2760.c into ds2760_battery.c, > drop some EXPORT_SYMBOL and make functions static instead. Then > move content from probe/remove function into add_slave/remove_slave > callbacks and drop all platform device things. Okay, yes, that makes sense. I never understood why there are multiple drivers for this. Thanks, Daniel