Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1857754ima; Thu, 25 Oct 2018 06:10:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5c494LuoYfeQ5RaiZL1kQfGcem/kOBCsyBKdetrklJ4IlZ6Qci/509hdVRlWKwo0XA81ud5 X-Received: by 2002:a63:194a:: with SMTP id 10-v6mr1463034pgz.192.1540473027563; Thu, 25 Oct 2018 06:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540473027; cv=none; d=google.com; s=arc-20160816; b=Uk06AWKtaYxxgYjP99KSJcfDSvTKrHb1cB7rdm09vmBhocUviuLWiUBAt6q3l6BLIA c4AxOzNDbqqs7Stu3bvHZQ/jxYq34u1Y368qdqb9DgAuS0h7OZVKKnC1RvCNpDDBN/pE AQNtY4Sx8cKHIusLy/q2XwNBFD81ZKxgp11nDxVDAnHGdhiLKG+iQObWrHnQu+vuFJHa 6ktlD2mfWVTduZjQLBi6/TqbWAbKKc7o+Dzs1JwHRWZYTddm8E6ODIAdZPyWVQ+gnFwH JGFT7l3ncmripeQSqfQwlJRXc8vgbGXPOgek4w2oWcRBxbYAeaF8SJOeVrh01u498wr1 uKpQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TaUX5FHE3vJu5JKIBqis+PBI6Id5okwt0aMHGpW5e/4=; b=Tqw+iTemegfElyVeJnjtlYCnyEEcPuxxv5NUZ3Y90m+SieSbPDmVJI7S2/XaqKdsC/ SdezEp9Kvia6YmKUnRWoX5WuyzUCn9hMBtBuezh3OyS9rLmygkk3PMHuxfX8u4+s8a9p KJJyQYVxwk5Z1zU+bCjikgEiDEKXJkYsBMG75ZPK7BM7JYEDcMZ1gE3QgQEJdUSIJQrv jwOQiGUwitjEcwvmSfRVqrTPQM6t9vnPBZaH8hQUqyVK9OF+tC0Im77m4YP1PLosjK+q EFshgkqtnlHt0ylPKf208W8/L2MOZN+aZewRz9KE/RUT6ltu4Wot1cJ4RqWJQ+A/E3Fz EL7g== 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 s8-v6si9212612pgn.390.2018.10.25.06.09.32; Thu, 25 Oct 2018 06:10:27 -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 S1727450AbeJYVlE (ORCPT + 99 others); Thu, 25 Oct 2018 17:41:04 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:36105 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727125AbeJYVlE (ORCPT ); Thu, 25 Oct 2018 17:41:04 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C055F80848; Thu, 25 Oct 2018 15:08:19 +0200 (CEST) Date: Thu, 25 Oct 2018 15:08:20 +0200 From: Pavel Machek To: Liviu Dudau Cc: Jacek Anaszewski , Linus Walleij , linux-leds@vger.kernel.org, LKML Subject: Re: [PATCH] leds: gpio: set led_dat->gpiod pointer for OF defined GPIO leds Message-ID: <20181025130820.GA10294@amd> References: <20181018001432.710-1-liviu@dudau.co.uk> <20181023111842.GA29083@bart.dudau.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20181023111842.GA29083@bart.dudau.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-10-23 12:18:44, Liviu Dudau wrote: > On Thu, Oct 18, 2018 at 01:14:32AM +0100, Liviu Dudau wrote: > > Commit 45d4c6de4e49 ("leds: gpio: Try to lookup gpiod from device") > > removed the common code path that set the led_dat->gpiod pointer in > > create_gpio_led(), but only added it back for the devices that have > > a valid gpio_led_platform_data structure. Calling gpio_leds_create() > > in gpio_led_probe() is not enough to get a valid gpiod pointer. > >=20 > > Fortunately enough, gpio_leds_create() already gets the needed pointer, > > we just need to assign it to the relevant gpio_led_data structure. > >=20 > > Fixes: 45d4c6de4e49 ("leds: gpio: Try to lookup gpiod from device") > > Cc: Linus Walleij > > Cc: Jacek Anaszewski > > Signed-off-by: Liviu Dudau Acked-by: Pavel Machek --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlvRwEQACgkQMOfwapXb+vLnlQCfVuN9x6W44LTDBA8LOvC3ydfe PGEAn114L8PUMDo1fD6c3sbODcP4JeA/ =8K2O -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--