Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp260899pxf; Wed, 24 Mar 2021 04:40:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFUGwVtPlRxISRb7jWi4iBNdXvAUuxYw5ahkOlpFByUZ5TY+FzXd1IkJH5TYsgv0pJ/LlK X-Received: by 2002:a17:906:d790:: with SMTP id pj16mr3104567ejb.255.1616586023606; Wed, 24 Mar 2021 04:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616586023; cv=none; d=google.com; s=arc-20160816; b=UKH6IMI8n1DHzFUOu1SETEj/Rjbq37ZR/T8l3zGe1vhhVBkixW4OGCvUHejpkxxCy6 wcI27cSIXwEBmK9NZKtrx0/cClkBLpKYgLNkK69S2Yp8WamCAJmKQ2ZS9wURiMJsSQgi l0I7NKso8IhrF7a7ecF3SCE8+MKfUo915syjJF1zK5GfgWt8cfcmGO0nrPqgQtDBKzxi gPofqEN4F2vIXWt71RWSIJAged/aV/qOHabc0KzQaFVX6K7b7SslVwxxxMKbYUO66NsS EH4QjglXynIEL+bL54WVyY6wqMoFLjhRGpWeVGsV8Fy9WvK0Ha5WupRmLKFsWAiQBkKo zgYg== 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=z9XpNcPltmwlqOc487UvVlgId2WjleHZ6dGbfORWU3c=; b=Hdt2M3QVowms6cmwFDsOKZgCAhSDy175U7qzVacyqXgmEWK5iEAlVqaMP0CcHat75E ReYZsSFPTgxHuYUfZu7dtBc0PrOMJXeV3PHH5ImYpi/deq4LgQwrR12qTz7/kmM4SYuW wf4K5R3rnUGBjJlrG/rt6gPDsBZoD1i3RgSAtAnyMAWLLsVQgR/Li+Hcoe0Bp7/rwzVi XcscdJspuxTyYwc6Q06g5o9KxCOV/3dlETdHPsdrYzdJ0WXsZ0eB8oXdJbNBtQ1aU3da 5TaVEC+eKovyUD6lnBKFt5NN8Nj13vdcCvLmgYq4qikxFwSj5TcBGg/2uCqHBI17uncz Ar5A== 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 o16si1565257ejb.259.2021.03.24.04.40.00; Wed, 24 Mar 2021 04:40:23 -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 S234087AbhCXKms (ORCPT + 99 others); Wed, 24 Mar 2021 06:42:48 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:35828 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230259AbhCXKmW (ORCPT ); Wed, 24 Mar 2021 06:42:22 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 627F81C0B7D; Wed, 24 Mar 2021 11:42:20 +0100 (CET) Date: Wed, 24 Mar 2021 11:42:20 +0100 From: Pavel Machek To: Marek Behun Cc: Hermes Zhang , dmurphy@ti.com, robh+dt@kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, chenhuiz@axis.com, lkml@axis.com, kernel@axis.com Subject: Re: [PATCH 1/2] leds: leds-multi-gpio: Add multiple GPIOs LED driver Message-ID: <20210324104220.GC6035@duo.ucw.cz> References: <20210324075631.5004-1-chenhui.zhang@axis.com> <20210324075631.5004-2-chenhui.zhang@axis.com> <20210324103431.4b945915@thinkpad> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Clx92ZfkiYIKRjnr" Content-Disposition: inline In-Reply-To: <20210324103431.4b945915@thinkpad> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Clx92ZfkiYIKRjnr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > + of_property_read_string(node, "default-state", &state); > > + if (!strcmp(state, "on")) > > + multi_gpio_led_set(&priv->cdev, LED_FULL); > > + else > > + multi_gpio_led_set(&priv->cdev, LED_OFF); >=20 > Again LED_FULL and LED_OFF... > What about default-state =3D "keep" ? Let's not support default-state unless you need it. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --Clx92ZfkiYIKRjnr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYFsXjAAKCRAw5/Bqldv6 8oBsAKCrUYkCicLSpdbBtC34/b1tEkxOdwCgh2q9i9aSIzBTZdg8Ts7aJB4BEKc= =NkP/ -----END PGP SIGNATURE----- --Clx92ZfkiYIKRjnr--