From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B7F3C43334 for ; Mon, 4 Jul 2022 11:00:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233691AbiGDLAH (ORCPT ); Mon, 4 Jul 2022 07:00:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233132AbiGDLAG (ORCPT ); Mon, 4 Jul 2022 07:00:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C70BFD35 for ; Mon, 4 Jul 2022 04:00:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8D502615F9 for ; Mon, 4 Jul 2022 11:00:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D48F5C341CE; Mon, 4 Jul 2022 11:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656932403; bh=zUPFihIJAAbV5NsZohIh6G/oQ2NNdrQe3akgMMJcq8k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RMPjG4dRgYNemN3ErDUszl2w23ASEapiyYQIaV93bWDje8Rq4xEiIzsWNZFSBSXbr 5uhEiiliVOzZ/Lp2OfMbG8g4em42drGy7G7HClVLaqIoUmA1jr7X04HDlHXDmckg+Y YueBSA4w40dODEu5ewFx7ttTFMmx7jYw9tZwSCmHbK+g5Of6CNmTuIpYDRIIfMJZT8 Vc9QJQYFB82jNK1mELhirl1ZZ1PtzcK1aRHVGbN9BlHah+Q4+c/PmQO+VBVxGs315b u/qdLAbE9RMRlX7CPh+C0m+/SuWH3KwIfOhEtqljwc/1bzV14EIBetu6JS5MDxbOhN yr8Vjue3fAwyw== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Pavel Machek , linux-leds@vger.kernel.org Cc: pali@kernel.org, Josef Schlehofer , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH 2/3] leds: turris-omnia: initialize multi-intensity to full Date: Mon, 4 Jul 2022 12:59:54 +0200 Message-Id: <20220704105955.15474-3-kabel@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220704105955.15474-1-kabel@kernel.org> References: <20220704105955.15474-1-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org The default color of each LED before driver probe (255, 255, 255). Initialize multi_intensity to this value, so that it corresponds to the reality. Signed-off-by: Marek BehĂșn --- drivers/leds/leds-turris-omnia.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c index c2dfb22d3065..fae155bd119c 100644 --- a/drivers/leds/leds-turris-omnia.c +++ b/drivers/leds/leds-turris-omnia.c @@ -131,10 +131,13 @@ static int omnia_led_register(struct i2c_client *client, struct omnia_led *led, } led->subled_info[0].color_index = LED_COLOR_ID_RED; + led->subled_info[0].intensity = 255; led->subled_info[0].channel = 0; led->subled_info[1].color_index = LED_COLOR_ID_GREEN; + led->subled_info[1].intensity = 255; led->subled_info[1].channel = 1; led->subled_info[2].color_index = LED_COLOR_ID_BLUE; + led->subled_info[2].intensity = 255; led->subled_info[2].channel = 2; led->mc_cdev.subled_info = led->subled_info; -- 2.35.1