6f9aaf11dbb8b072ecfdab5e867bf806162495cd
[openwrt/staging/ldir.git] / target / linux / mvebu / patches-5.10 / 103-leds-turris-omnia-initialize-multi-intensity-to-full.patch
1 From bda176cceb735b9b46c1900658b6486c34e13ae6 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org>
3 Date: Mon, 4 Jul 2022 12:59:54 +0200
4 Subject: [PATCH] leds: turris-omnia: initialize multi-intensity to full
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 The default color of each LED before driver probe (255, 255, 255).
10 Initialize multi_intensity to this value, so that it corresponds to the
11 reality.
12
13 Signed-off-by: Marek BehĂșn <kabel@kernel.org>
14 ---
15 drivers/leds/leds-turris-omnia.c | 3 +++
16 1 file changed, 3 insertions(+)
17
18 --- a/drivers/leds/leds-turris-omnia.c
19 +++ b/drivers/leds/leds-turris-omnia.c
20 @@ -139,10 +139,13 @@ static int omnia_led_register(struct i2c
21 }
22
23 led->subled_info[0].color_index = LED_COLOR_ID_RED;
24 + led->subled_info[0].intensity = 255;
25 led->subled_info[0].channel = 0;
26 led->subled_info[1].color_index = LED_COLOR_ID_GREEN;
27 + led->subled_info[1].intensity = 255;
28 led->subled_info[1].channel = 1;
29 led->subled_info[2].color_index = LED_COLOR_ID_BLUE;
30 + led->subled_info[2].intensity = 255;
31 led->subled_info[2].channel = 2;
32
33 led->mc_cdev.subled_info = led->subled_info;