From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 692C0C433E2 for ; Thu, 17 Sep 2020 16:23:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 18DE6206E6 for ; Thu, 17 Sep 2020 16:23:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728453AbgIQQXt convert rfc822-to-8bit (ORCPT ); Thu, 17 Sep 2020 12:23:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728474AbgIQQW7 (ORCPT ); Thu, 17 Sep 2020 12:22:59 -0400 Received: from mail.nic.cz (lists.nic.cz [IPv6:2001:1488:800:400::400]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32365C061354; Thu, 17 Sep 2020 08:54:09 -0700 (PDT) Received: from localhost (unknown [IPv6:2a0e:b107:ae1:0:3e97:eff:fe61:c680]) by mail.nic.cz (Postfix) with ESMTPSA id F3C5113F681; Thu, 17 Sep 2020 17:54:06 +0200 (CEST) Date: Thu, 17 Sep 2020 17:54:06 +0200 From: Marek Behun To: Dan Murphy Cc: , Pavel Machek , =?UTF-8?B?T25kxZllag==?= Jirman , , Rob Herring , Subject: Re: [PATCH leds v1 09/10] leds: lm36274: use struct led_init_data when registering Message-ID: <20200917175406.361395d3@nic.cz> In-Reply-To: <7940ab2f-f4a5-c909-9270-4b713b76261d@ti.com> References: <20200916231650.11484-1-marek.behun@nic.cz> <20200916231650.11484-10-marek.behun@nic.cz> <7940ab2f-f4a5-c909-9270-4b713b76261d@ti.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Sep 2020 10:28:12 -0500 Dan Murphy wrote: > Marek > > On 9/16/20 6:16 PM, Marek BehĂșn wrote: > > By using struct led_init_data when registering we do not need to parse > > `label` DT property nor `linux,default-trigger` property. > > > > A small refactor was also done: > > - with using devm_led_classdev_register_ext the driver remove method is > > not needed > > - since only one child node is allowed for this driver, use > > device_get_next_child_node instead of device_for_each_child_node > > > > Previously if the `label` DT property was not present, the code composed > > name for the LED in the form > > "parent_name::" > > For backwards compatibility we therefore set > > init_data->default_label = ":"; > > so that the LED will not get a different name if `label` property is not > > present. > > You are going to re-factor this as well a lot of changes in a single > patch is hard to review > > Dan > I am trying to do this now.