Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3121327pxk; Mon, 21 Sep 2020 05:56:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbyIlCFn5NfyRU34ZuHIJybNKOoA3a6LF/uornsdbNEAaVlEsiwMrwAZj+h57TZTE+3azN X-Received: by 2002:a05:6402:78b:: with SMTP id d11mr54191841edy.341.1600692969959; Mon, 21 Sep 2020 05:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600692969; cv=none; d=google.com; s=arc-20160816; b=EAVIR1JaoUNM9lSXfiPYqt9+lHJbqI6suAvWfysgkDlTGzUn/MswXMeIxwEbOygTuk oG0T1DOm6DfCNrt8Lukch6eZgsXAlIYXMBe0p1KaugLLc+ZVdiVvVJyuVhna5draA8xY h5vJ1YNVt9w7O/Cn5GtKnYpxQKHV9dCWgouBZj8hQRObnK2xc8R52ANgBEmg7WTvx3BD o9M1GNKqzwmFW5jiWgaZZfefx+1crWYyMX9VaD16gBbzsVju85bmsdc8ccr1U0+BRymA jnSfWA2E9EMvQrnnz0OWmw65KctVdKCXE4oxLRQquVA38ePVC8JgUNz/G+qV4yOw5uu5 JMfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=iTKfCqZQHkzUBof9YL52UlrOMPlpPwSCBmulA/GcxpI=; b=VmUyIvCaZW/CVxRwlIIDUlDECAVKYwWVsyT5Rewb6/nAObh6QK50BMAsKqOWMyn9T5 hpoId13o6IyXMLsWPtpA+8zxI5u5re3z5j9Z9zxqCelf57pg3+eV+WkcMk9P9hNk6prI M+ZHyu+KQkheHIBZb2IWUXKoyI92zzpS32Dd0ZFNteX6ASqGkxG7ow1gVlJL/kUQB/63 KuCPi/Sfv6QRP+wMZO+GxMJPz5uVo5wQURmMHZO+0oeUcQw5XwBTjRDpcegyIsNvQGch dzRxxE4meaVpkzwk6DLmeOAPAwGtaffjeQRzqYWifwonmzTd6H1liCM+Nrekd2HzYHNu XZmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w7si5895666ejk.390.2020.09.21.05.55.45; Mon, 21 Sep 2020 05:56:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726915AbgIUMxs (ORCPT + 99 others); Mon, 21 Sep 2020 08:53:48 -0400 Received: from vm1.sequanux.org ([188.165.36.56]:48371 "EHLO vm1.sequanux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbgIUMxr (ORCPT ); Mon, 21 Sep 2020 08:53:47 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by vm1.sequanux.org (Postfix) with ESMTP id 03AB21085E1; Mon, 21 Sep 2020 14:53:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at vm1.sequanux.org Received: from vm1.sequanux.org ([127.0.0.1]) by localhost (vm1.sequanux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U7ldmjyxRVTX; Mon, 21 Sep 2020 14:53:43 +0200 (CEST) Received: from localhost (softwrestling.org [188.165.144.248]) by vm1.sequanux.org (Postfix) with ESMTPSA id D50811080EF; Mon, 21 Sep 2020 14:53:43 +0200 (CEST) Date: Mon, 21 Sep 2020 14:53:43 +0200 From: Simon Guinot To: Marek Behun Cc: linux-leds@vger.kernel.org, Pavel Machek , Dan Murphy , =?utf-8?Q?Ond=C5=99ej?= Jirman , linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Simon Guinot , Vincent Donnefort , Thomas Petazzoni , Linus Walleij Subject: Re: [PATCH leds v1 10/10] leds: ns2: refactor and use struct led_init_data Message-ID: <20200921125343.GA4828@kw.sim.vm.gnt> References: <20200916231650.11484-1-marek.behun@nic.cz> <20200916231650.11484-11-marek.behun@nic.cz> <20200918130206.GE29951@kw.sim.vm.gnt> <20200918191405.516b51ff@nic.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <20200918191405.516b51ff@nic.cz> User-Agent: Mutt/1.6.0 (2016-04-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KsGdsel6WgEHnImy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 18, 2020 at 07:14:05PM +0200, Marek Behun wrote: > On Fri, 18 Sep 2020 15:02:06 +0200 > Simon Guinot wrote: >=20 > > On Thu, Sep 17, 2020 at 01:16:50AM +0200, Marek Beh=C3=BAn wrote: > >=20 > > Hi Marek, > >=20 > > > By using struct led_init_data when registering we do not need to parse > > > `label` DT property nor `linux,default-trigger` property. > > >=20 > > > Also, move forward from platform data to device tree only: > > > since commit c7896490dd1a ("leds: ns2: Absorb platform data") the > > > platform data structure is absorbed into the driver, because nothing > > > else in the source tree used it. Since nobody complained and all usag= e =20 > >=20 > > Well, I probably should have... > >=20 > > I am using this driver on the Seagate Superbee NAS devices. This devices > > are based on a x86 SoC. Since I have been unable to get from the ODM the > > LED information written in the ACPI tables, then platform data are used > > to pass the LED description to the driver. > >=20 > > The support of this boards is not available mainline yet but it is still > > on my todo list. So that's why I am complaining right now :) If it is > > not too much trouble I'd like to keep platform data support in this > > driver. > >=20 > > Thanks in advance. > >=20 > > Simon > >=20 >=20 > Simon, what if we refactored the driver to use fwnode API instead of OF > API? Then if it is impossible for you to write DTS for that device, > instead of platform data you could implement your device via swnode > fwnodes. :) Yes. That would be perfect. Simon --KsGdsel6WgEHnImy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEXW8DgovlR3VS5hA0zyg/RDPmszoFAl9oolcACgkQzyg/RDPm szrExxAAjNpMeco55YZIg8vi5pc3s8jKk0RzlVCx0U8kugJzjUN0Uh+WVGgelNpY 5b+z1qe9m893rke8AueMJZMPraHrL585c2JWatYHeGfyoEXG+e4Uwba9XfRF1xj/ vdAc/OZJSAF1ZMiJIZ6sQ385dr06MP7KEFCHwy1HVquohMVEjAHfXfG9WMamaQLX XRb43iuJP3WBiR3LVJ19q/bAoArcyF+My4WB3vbuv3MnV0fOWSmglX6Hbl078w2K qnBwB3u1+A0oXVGCndKUeHxFTscJBLPoKPdMmE0TI8QQOaey4rSmyAivBuCeANby Z3LpPNX8b2kffxD/zVTQrzxnHMTpnZeKt46zlanYAK46ks0/d8yZEbIgYlC6oVI2 tFwH8bzieitdHYXoJ+d0V5Ac9G6NPODmKw5gh0F4PXr5R2x77M8k4mYFiXwgpR+q YEziR+Fi3iYiKNFGqQ2cZRNmJ+QhhOb1OH8lpH53etIVHs6Hy+FSuZoNJf2rLRDh BW4wIqOaHd91sf931DXJhKKrKsECH89/OLcr52OT3zL8ieOC5mgLiXaMRjL76YbC r8gKajpIZS+zdF7ecUVXFRtegyTj1xhZY53YT+3nZqSvpb7w7MP9JaInC1kaDg0A sXyq+GFw6grikNHJFmqlRPT25g28aLFFDHny9+Grb5goEktLKTc= =/jex -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--