Received: by 10.192.165.148 with SMTP id m20csp307770imm; Wed, 9 May 2018 13:03:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqFJjxiVut1fA/izskOePGNl7DzdPbY1zZYOA2LNwpwOMn4H4sWnTweX7KSxCQHIORWFmzL X-Received: by 10.98.68.156 with SMTP id m28mr39349812pfi.145.1525896239800; Wed, 09 May 2018 13:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525896239; cv=none; d=google.com; s=arc-20160816; b=YTPGzdA7HDjODbd0xFLdApvwhO4PSPcOjTyoAcilpi5ciGpZYfBU9ExeMSHQ7/VW/c FOcZSl1FUGDmkPhVtHBssnLTyFeQGpT7f9rfHj4VMPbCFZQijT+3/gULLxeVMonn708x rkMZHLNlfBAe1Q02Nd4nNWfIPNj+2zJcemubtrxqPIbehP8VTjKUVghYz+KA9J0QG9du hBhhwuxHE7pS25z0Azp17XJJNYmEdGc8DYUL+B4k231u2qY/33JRXAODjbGm9b/yl87+ LrxRfhOcUMeIooGEDf55kX4Aqzqp5kubyCQnTUES7Ocf/vpU52yAKfJ3DJOq1GJkaGFX kgKA== 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:dkim-signature :arc-authentication-results; bh=IKZUGvUjEgPDOV6CM56XhAswTG3P5gtRz/qMHO7xNxI=; b=mDuZ7EnGUL+QQuUT9Y8j/FsnX2dcVYt4XaaHzSg0Uu5swf1J05HFAp6cIuZoc9yZZp PbtEXAsapBimR22QPa6j5HfC4jiA02slLmUWoyFGorMHvyiCIYD/NM4iJqV1aDruDByD qobnMZ/BQ0zorvQL4lZ27uOMzUg2yjb+9G9x2PPqCYR4iWanGdzOyteanbmi9LCv8ws4 D5Fx439Ys8jxAH9xiT3HG1J9BdgU1fzdBgO4115c8DexJzD1iWYbu9GpIBhOzB3V26o9 zbP8cLsCNh8ghS8q1vwofm3VUNCQ+aA+w1gGjwaVy06RCUwLnH7XS4gAAiTmYKXNoGOJ LzHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b83PVMxE; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e33-v6si20519261pld.231.2018.05.09.13.03.36; Wed, 09 May 2018 13:03:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b83PVMxE; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965869AbeEIT6k (ORCPT + 99 others); Wed, 9 May 2018 15:58:40 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:34690 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751803AbeEIT6i (ORCPT ); Wed, 9 May 2018 15:58:38 -0400 Received: by mail-wr0-f195.google.com with SMTP id p18-v6so36736751wrm.1; Wed, 09 May 2018 12:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IKZUGvUjEgPDOV6CM56XhAswTG3P5gtRz/qMHO7xNxI=; b=b83PVMxE7DiTheXMOj+4bDBMTPyc/EKsWTXx9HdQWSZd60yyAdMLmPAQfmK0QZGwcj 2Z0uyHVCEvfKJFurmBQNQAsfCuqtbviANmbWLpx0xP23T5ZD4qIAgUAavrSgv2yNhErO zUYROX8EAkiEZkjSgE+ZESTxqKcN4eM71UuWQAInhjwYpn0kyWPeWG6cnPb5iaHVQZ1+ Trw+KFy9DORFAABpzMajByjSe/xK2EiGSZWr0ERUl8oS5V9nU0CN3+vzVIBwWuYmSTuS lu8haenPoroUOyclAe5rC1BGuRdIrX63cWGQs+k/DwRGpgwFdo0grIoXFpncGaOnX/pJ 7DhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IKZUGvUjEgPDOV6CM56XhAswTG3P5gtRz/qMHO7xNxI=; b=uBTnljavzpBj2Ekcq3aokA9n/mqariS/Ut6LPzPdnfyQwnNwtYiQ2O/SnBM5fGyQed WM2prqlZeraq1YegtznscBjeIh46YEVWoK4CVa2PNwvpL4I2gDZHrICFuQCbOT0SuTyC xdmmM0w/dDwODjaHPrvPgu9pSyQmO6APuPhyBAqYxUJvKYPvdV3HR6tYtGi5o/64eiHU ++aO2ImOnq3DzwtXnedoiakApURVjY9SC/8H7v2i+s5dmwKsE3HJ+HgHh4ySYsZAhWkU WMriOhG+Kub7q7kIL0UUTJISmXjwparN4zF+E+Q3nnmUmXOdbIxnJEU1fGFe/xHgO5N6 n9QQ== X-Gm-Message-State: ALKqPwf7utnAs/Zd8/tVtynbYQFSepcTHopLKwEZK9Z4gtFhPKQE4uen vsJWNEdc6jgtZqlttvJ+f3CjjDw8 X-Received: by 2002:adf:a4d3:: with SMTP id h19-v6mr5857715wrb.7.1525895916597; Wed, 09 May 2018 12:58:36 -0700 (PDT) Received: from [192.168.1.18] (bla89.neoplus.adsl.tpnet.pl. [83.28.194.89]) by smtp.gmail.com with ESMTPSA id b10-v6sm58502790wrn.42.2018.05.09.12.58.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 12:58:35 -0700 (PDT) Subject: Re: [PATCH v3 1/3] leds: triggers: provide led_trigger_register_format() To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Marc Kleine-Budde Cc: Greg Kroah-Hartman , Jiri Slaby , Johan Hovold , Pavel Machek , One Thousand Gnomes , Florian Fainelli , linux-serial@vger.kernel.org, Mathieu Poirier , linux-kernel@vger.kernel.org, linux-can@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, Robin Murphy , linux-leds@vger.kernel.org References: <20180508100543.12559-1-u.kleine-koenig@pengutronix.de> <20180508100543.12559-2-u.kleine-koenig@pengutronix.de> <20180508201725.3alpkcpaxebupzqv@pengutronix.de> From: Jacek Anaszewski Message-ID: <906d2b27-2e8b-92a9-13ff-2676f48142f4@gmail.com> Date: Wed, 9 May 2018 21:57:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180508201725.3alpkcpaxebupzqv@pengutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Uwe, On 05/08/2018 10:17 PM, Uwe Kleine-König wrote: > Hello Jacek, > > On Tue, May 08, 2018 at 09:33:14PM +0200, Jacek Anaszewski wrote: >> Thank you for the patch. It looks fine, but please split >> the drivers/net/can/led.c related changes into a separate one. > > I renamed led_trigger_rename_static() to led_trigger_rename() (and > changed the parameters). The can change just adapts the only user of > led_trigger_rename_static() to use the new one. > > It's not impossible to separate this patches, but I wonder if it's worth > the effort. > > The first patch would be like the patch under discussion, just without > the can bits and introducing something like: > > /* > * compat stuff to be removed once the only caller is converted > */ > static inline led_trigger_rename_static(const char *name, struct led_trigger *trig) > { > (void)led_trigger_rename(trig, "%s", name); > } > > Then the second patch would just be the 6-line can hunk. And a third > patch would remove the compat function. (Maybe I'd choose to squash the > two can patches together then, but this doesn't reduce the overhead > considerably.) The only upside I can see here is that it increases my > patch count, but it's otherwise not worth the effort for such an easy > change. Further more as there is a strict dependency on these three > patches this either delays the cleanup or (IMHO more likely) the can > change would go in via the led tree anyhow. (Mark already acked patch 2 > of this series and in private confirmed that the agrees to let this > change go in via the led tree, too.) OK, makes sense. I'll wait also for ack on 3/3 since it should go through the LED tree as well - uses a new led_trigger_register_format(). -- Best regards, Jacek Anaszewski