Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2901210imu; Sun, 11 Nov 2018 03:33:06 -0800 (PST) X-Google-Smtp-Source: AJdET5f2JAeMNiOybuo+5bsUAwYZQ0TLEiMEFTCQqNrHfsXxZvRogHXoDVJiSLor2XCYjjXy3HCL X-Received: by 2002:a63:a51b:: with SMTP id n27mr14104539pgf.17.1541935986588; Sun, 11 Nov 2018 03:33:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541935986; cv=none; d=google.com; s=arc-20160816; b=rZta1Ac6vXDfXbGqp6xEIcWioziTxvKIB3fpkrNw8rE5gv/rhISMq41uznx8ae6EWu av/s+6Id07U8FGl5h5g4s4bovfbfwuUfYC6WWuTG0Zp8f1k9ieDtdOPCu7t7eBX311JK ZGOxrewYhg4qThwHs67R9ZCVsZVdbjfUpy5jji3+rqhrw6jR8fhng5VZEBYy17TVp6cM WWpjg4Va+yfmKgb/qJ/JVtcQ9EGJT0wk1iQ5jOxqtKsD1xzPva/SytPgLbxVCQTDS4VN 2oFjiuG5CFuBJ+ik+38qrYRmwfL0l/lG+ZOycVI4Rxv5P8kQLgSAg0oeVXh77ZaIz5ke bLmw== 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=2A8aKmC1Cg1r5zY9kg4XLcs/xTcoTmp4kpvvkz0bj2s=; b=NQG724DnFtFUwMonCOJfH7d3f2SSiQ1H5hekIDURd1Lmp5PUDlt153gJzsNabpwr0H qaqZGnYnB+QLQ8fiy7OSoCVzPoXKazhBwQsKWyRd2UQlrIumhiuzw17qb838rhaVJmWa e3p6NwOQ4/MaoHo3ND9Frt4Huel48psgmXNNZ8Mej38KaRU20TvLc2e6J0ALwttOPMAn SEDt37IgJkhvofRL6b+B+V8bEBpGMs/3eJOwQluxmgStAs15Jt+oqgeexhBdByMFBu2c P+8pVW26q7eloRHzZxi/QfTqFpgbxEcIcqM/PIxnYpPoNh3Wf6vgHrDCdKDE0yD0EBVp hW2w== 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 m22-v6si12239430pgj.583.2018.11.11.03.32.51; Sun, 11 Nov 2018 03:33:06 -0800 (PST) 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 S1727946AbeKKVUU (ORCPT + 99 others); Sun, 11 Nov 2018 16:20:20 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:44307 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727508AbeKKVUU (ORCPT ); Sun, 11 Nov 2018 16:20:20 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 06188806D3; Sun, 11 Nov 2018 12:31:55 +0100 (CET) Date: Sun, 11 Nov 2018 12:31:57 +0100 From: Pavel Machek To: Jacek Anaszewski Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org, Baolin Wang , Daniel Mack , Dan Murphy , Linus Walleij , Oleh Kravchenko , Sakari Ailus , Simon Shields , Xiaotong Lu Subject: Re: [PATCH 03/24] leds: dt-bindings: Add LED_FUNCTION definitions Message-ID: <20181111113157.GK27666@amd> References: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> <1541542052-10081-4-git-send-email-jacek.anaszewski@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dxRQSzdsN/lOP445" Content-Disposition: inline In-Reply-To: <1541542052-10081-4-git-send-email-jacek.anaszewski@gmail.com> 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 --dxRQSzdsN/lOP445 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Add common LED function definitions for use in Device Tree. > The function names were extracted from existing dts files > after eliminating oddities. Thanks for doing this. > diff --git a/include/dt-bindings/leds/functions.h b/include/dt-bindings/l= eds/functions.h > new file mode 100644 > index 0000000..3f94e09 > --- /dev/null > +++ b/include/dt-bindings/leds/functions.h > @@ -0,0 +1,101 @@ > +// SPDX-License-Identifier: GPL-2.0 > + > +#define LED_FUNCTION_2G "2g" > +#define LED_FUNCTION_ACTIVITY "activity" > +#define LED_FUNCTION_ADSL "adsl" > +#define LED_FUNCTION_ALARM "alarm" > +#define LED_FUNCTION_ALIVE "alive" > +#define LED_FUNCTION_ALL "all" > +#define LED_FUNCTION_APP "app" > +#define LED_FUNCTION_AUX "aux" > +#define LED_FUNCTION_BACKUP "backup" > +#define LED_FUNCTION_BACKLIGHT "backlight" > +#define LED_FUNCTION_BACKLIGHT_CLUSTER "backlight_cluster" Sounds like one of backlight and backlight_cluster should be deprecated? > +#define LED_FUNCTION_BEEP "beep" > +#define LED_FUNCTION_BLUETOOTH "bluetooth" > +#define LED_FUNCTION_BOOT "boot" > +#define LED_FUNCTION_BOTTOM "bottom" I believe some of these should get comments. For example what does "all" and "bottom" LEDs do? > +#define LED_FUNCTION_BRICK_STATUS "brick-status" > +#define LED_FUNCTION_CEL "cel" > +#define LED_FUNCTION_CEL_PWR "cel-pwr" > +#define LED_FUNCTION_CEL_RESET "cel-reset" > +#define LED_FUNCTION_CHRG "chrg" > +#define LED_FUNCTION_COM "com" > +#define LED_FUNCTION_COPY "copy" > +#define LED_FUNCTION_CPU "cpu" > +#define LED_FUNCTION_DEBUG "debug" > +#define LED_FUNCTION_DIA "dia" What does this one do? > +#define LED_FUNCTION_DISK "disk" We have disk, hd, hdd and sata. Deprecate some? > +#define LED_FUNCTION_DISPLAY_CLUSTER "display_cluster" > +#define LED_FUNCTION_DOWN "down" > +#define LED_FUNCTION_DSL "dsl" > +#define LED_FUNCTION_ENOCEAN "enocean" > +#define LED_FUNCTION_ENTER "enter" > +#define LED_FUNCTION_ERROR "error" > +#define LED_FUNCTION_ESATA "esata" > +#define LED_FUNCTION_ETHERNET_STATUS "ethernet-status" > +#define LED_FUNCTION_FAIL "fail" > +#define LED_FUNCTION_FAULT "fault" > +#define LED_FUNCTION_FLASH "flash" > +#define LED_FUNCTION_FRONT "front" > +#define LED_FUNCTION_FUNC "func" > +#define LED_FUNCTION_GPIO "gpio" > +#define LED_FUNCTION_GSM "gsm" > +#define LED_FUNCTION_HD "hd" > +#define LED_FUNCTION_HDD "hdd" > +#define LED_FUNCTION_HDDERR "hdderr" Ok, I'll=20 > +#define LED_FUNCTION_HEALTH "health" > +#define LED_FUNCTION_HEARTBEAT "heartbeat" Sounds same as alive, deprecate alive? > +#define LED_FUNCTION_WIFI "wifi" > +#define LED_FUNCTION_WIRELESS "wireless" > +#define LED_FUNCTION_WLAN "wlan" Same as wifi and wireless, I guess, deprecate some? I'll touch same subject in another email. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --dxRQSzdsN/lOP445 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlvoEy0ACgkQMOfwapXb+vLcPgCfSdAPmPF1vQHCin0P6SxODnBf +oYAmwf01SzTh3B3m8G5SedfY7FUHm9Q =oMq+ -----END PGP SIGNATURE----- --dxRQSzdsN/lOP445--