Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9122013pxu; Mon, 28 Dec 2020 07:10:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6QU1stOWniF0qisUrvrQCeIn8FbIoVO1CyG4qeAMM0hGBAttkF4J32DUqN3mnCkG6hQD6 X-Received: by 2002:a17:906:a8f:: with SMTP id y15mr21934071ejf.552.1609168211724; Mon, 28 Dec 2020 07:10:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609168211; cv=none; d=google.com; s=arc-20160816; b=NRskc4A5+ZGy77HOz3LFdafzXNQ1e8h560UsLpDOMeLMAESinsgv0ZuMU3baqAl+th RYaMQ3mX7GTH4VN42+LH9sjqz6KQGRkmtW6Ln7tBdW2m1p6vlfbBVW1gnNvO7oD4BZkp 68tBheB7vdIcjQ8cTSVGJ1N+dF6IvGgPQDAN2AeSurVvE9UYBvS93UHAT28DlZS6XjkJ 5bQbbzwxg2Y1K+OpzguwH3NXAKglY8cd79BAFzh9C3qrpR9zBru4rqvpQpfCwhF+aKib A+JZbsGGdv+tIAQObZpZwZxfbj9c5R8j7zZ4gDkAVgqB5BQCNzcxLRe4PIZSB6+dgvO7 zppg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BVWY7FqFBuz9XQBoV209pjBhE3bUh0YkceFmwLPxwos=; b=sHPtpDyVF8uUAsEok48uq6LnnpQFLPUUiN1H/eVSIdzOz0Ua+C5RUqjtgeNN7cJht3 iIQczqwL272pYITrnrm3RQuiBBHX11QBJuh/RUyv6WV1oLRBJK/cnMN/9GFVR1xWAFRK df19rG7NsR0Fpb9UPnof4hgzkcngr47PqmR4WQ2egmKKd7mRZ4OJ838pHPFNAidcXqfL SSq5xis+IZsSFh0TlpsYpR29TwIS2RvTA8wpk6xrdjk/KzqC93o7LdwkBCDEPt2vPldK kgw6YBOa5oQECAP0DpmSH9R4ockEyXfUnAP6WFBvEGrED6jh/ffLMPaIyxN5PR0XX9xB q17A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hVOrGUWR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss9si17876300ejb.746.2020.12.28.07.09.48; Mon, 28 Dec 2020 07:10:11 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hVOrGUWR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439745AbgL1PHL (ORCPT + 99 others); Mon, 28 Dec 2020 10:07:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:43848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438798AbgL1OJ1 (ORCPT ); Mon, 28 Dec 2020 09:09:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E0FD9206C3; Mon, 28 Dec 2020 14:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164527; bh=iIow4M2IQxaBOiAtvDekYGaZdDt0Zr57yL9ldMSPCSs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hVOrGUWRLzR+R3qOOUtoYPaSDZDeR03tRAimeM8PosoczqKX0KAVAWBxYcqbBgnP6 i49OWzh67FZ8F5v+Dq0gjb0OGqx0fSX6rkFsM76gVCGm0UHZr3UxDMydJa+n91tiKq T7N9/RYvFNPsIW46pgP8l761jO7fi+UEdD6NNeBg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= , Pavel Machek , Sasha Levin Subject: [PATCH 5.10 205/717] leds: turris-omnia: check for LED_COLOR_ID_RGB instead LED_COLOR_ID_MULTI Date: Mon, 28 Dec 2020 13:43:23 +0100 Message-Id: <20201228125030.804307602@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek BehĂșn [ Upstream commit 98650b0874171cc443251f7b369d3b1544db9d4e ] 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") Signed-off-by: Pavel Machek Signed-off-by: Sasha Levin --- 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 8c5bdc3847ee7..880fc8def5309 100644 --- a/drivers/leds/leds-turris-omnia.c +++ b/drivers/leds/leds-turris-omnia.c @@ -98,9 +98,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; } -- 2.27.0