Received: by 10.192.165.148 with SMTP id m20csp4726752imm; Tue, 8 May 2018 13:18:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpR8ign2jh0vAp5KxSMHQRoHbaQVMGCYuuCg+YVVz/YGxEEgWJrHYIeW/oTeqsaD7LopMbj X-Received: by 2002:a17:902:3281:: with SMTP id z1-v6mr42172945plb.226.1525810709848; Tue, 08 May 2018 13:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525810709; cv=none; d=google.com; s=arc-20160816; b=BX/vJxfMTWUZPmQQiSGz0NyTDDw64OdCE/qcZ++axePaOMFoJbEdAWdmTKRlrbwxkO KbMySJ81fHpOiM9xl+vwqy+nYYnbAXrgaeadGPp/vMAccM562Uw/Q9gFT54KAMH98MMH jYJvQRlmPFi2GYLIOyFTBKxRVmHnOG6mGJZD9XyfvyjkbKPZBnnUVzQRusJTBR+ivNf7 sMYTnmSmqQ1QwBhwZbgG9KLFJlJQyN+e54Py8NGyVEiKMGn2G8LnZlPGJCHOuUZNI7zK giwJ9d3PQuO/RxVjCTgpf6xd+Ah1/0PRFAgbEAQWPcUYqpvEChlo/gMIgMtV/kYF1PzH Bq+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=j7rN87+80by4yNEUxNGHtaGDk4zowec7b6H/T0WbFso=; b=LMKFCO/JIY/lc8cW9oINPTlf2oVDdM4pnYG/vlk4pM/JYMOg7nVYGJ67wNIs6RoQgI 0Sxyd7WBT+E6KPhV5txmgMDKxD1lCHHRT9Z6IwLwzCOngcTvz1zK3ln3D9qC1U/g+T8M QXx0z7wuohGL4n8Haa41A1F9Vdiled8287+Qpv3PZDNjvHJYYWiSOZsSWhqAPSR09eN8 sr40LBuV6fRl6ixwp++bPQr4l/CcNe9vJwKrtM+siBx1lBWk75HhKBX+q7NRFnA1V52P K+iPxdbocHbvBtT4g1k2XFcCBoF+1F/oJ7DOoOcrQEM8Z06DDGfhMIilkm77TbIl6J8v /FCA== 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 m3-v6si11057616pgs.165.2018.05.08.13.18.14; Tue, 08 May 2018 13:18:29 -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 S1755722AbeEHURk (ORCPT + 99 others); Tue, 8 May 2018 16:17:40 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58525 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755544AbeEHURj (ORCPT ); Tue, 8 May 2018 16:17:39 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fG93A-0004lb-DH; Tue, 08 May 2018 22:17:28 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1fG937-0005RL-Bq; Tue, 08 May 2018 22:17:25 +0200 Date: Tue, 8 May 2018 22:17:25 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Jacek Anaszewski , 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 Subject: Re: [PATCH v3 1/3] leds: triggers: provide led_trigger_register_format() Message-ID: <20180508201725.3alpkcpaxebupzqv@pengutronix.de> References: <20180508100543.12559-1-u.kleine-koenig@pengutronix.de> <20180508100543.12559-2-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |