From patchwork Fri Oct 30 02:39:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 315023 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A472AC4363A for ; Fri, 30 Oct 2020 02:39:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 56D0620782 for ; Fri, 30 Oct 2020 02:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604025563; bh=znp1m5FtTSQuGw0FNwpIZYGhwZs/SzfmEzsFBUYYnOY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=t+EcPpmrJWW5RurQwpd2D7WxZK939E+UXqsBVRhvsHMHy3nlvM8zqIHqDkQtdT9qf LrUY31hUitPIKQLrJjzHYekCbWHoH826HC/x8hf6g1D6cFbbbpUbxiJotYj2cxPCQL 1jAUTVwuXBTK8rDcF3CRxYSxY1f9oU5KQ8Gxa7R4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725904AbgJ3CjX (ORCPT ); Thu, 29 Oct 2020 22:39:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:38650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbgJ3CjW (ORCPT ); Thu, 29 Oct 2020 22:39:22 -0400 Received: from dellmb.labs.office.nic.cz (nat-1.nic.cz [217.31.205.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 636702098B; Fri, 30 Oct 2020 02:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604025562; bh=znp1m5FtTSQuGw0FNwpIZYGhwZs/SzfmEzsFBUYYnOY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0h82vF1neulWauaCC+KP/oWQMAl46tAEEzyIZQ02/Kc4dahfbMe/dAPgQBN5ADAkE FrHw8CdTJqmJv1Sk8biHC07qDfZW/r9J05KljC5QhoGi0cJDBGc4RoQcrhJiK4Ovpz fH4EG77t+UaLyjWF3DI15EOQ4XXpr7FoTRElNecY= From: =?utf-8?q?Marek_Beh=C3=BAn?= To: linux-leds@vger.kernel.org Cc: Dan Murphy , Pavel Machek , =?utf-8?q?Ma?= =?utf-8?q?rek_Beh=C3=BAn?= Subject: [PATCH leds 5/5] leds: turris-omnia: check for LED_COLOR_ID_RGB instead LED_COLOR_ID_MULTI Date: Fri, 30 Oct 2020 03:39:06 +0100 Message-Id: <20201030023906.24259-5-kabel@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201030023906.24259-1-kabel@kernel.org> References: <20201030023906.24259-1-kabel@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org LED core does not allow LED_COLOR_ID_MULTI for now and instead for RGB LEDs prefers LED_COLOR_ID_RGB. Signed-off-by: Marek BehĂșn Fixes: 77dce3a22e89 ("leds: disallow /sys/class/leds/*:multi:* for now") --- drivers/leds/leds-turris-omnia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c index c0b4e1e0e945..7b2f4d0ae3fe 100644 --- a/drivers/leds/leds-turris-omnia.c +++ b/drivers/leds/leds-turris-omnia.c @@ -90,9 +90,9 @@ static int omnia_led_register(struct i2c_client *client, struct omnia_led *led, } ret = of_property_read_u32(np, "color", &color); - if (ret || color != LED_COLOR_ID_MULTI) { + if (ret || color != LED_COLOR_ID_RGB) { dev_warn(dev, - "Node %pOF: must contain 'color' property with value LED_COLOR_ID_MULTI\n", + "Node %pOF: must contain 'color' property with value LED_COLOR_ID_RGB\n", np); return 0; }