Message ID | 20231117113811.149329-2-rasmus.villemoes@prevas.dk |
---|---|
State | Accepted |
Commit | 5bf61f918df2140bec16ef574afe8b1490738df3 |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=j05beaJY; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SWw0P6X57z1yRV for <incoming@patchwork.ozlabs.org>; Fri, 17 Nov 2023 22:39:01 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8884287056; Fri, 17 Nov 2023 12:38:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="j05beaJY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CAB8686E96; Fri, 17 Nov 2023 12:38:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,SPF_HELO_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20724.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::724]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C94F886EB8 for <u-boot@lists.denx.de>; Fri, 17 Nov 2023 12:38:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jtOcO3ZkmKD8ttLsc+Uj+SwqxFDOGNDRzkXOxvr/TtOOdvzxrMMoQvaPSRKq7m6p7lhCzIjeazOzv4x9KC2tzTtcSQBSGA9jKhID+OnDsVbRXw5GllZP6xOL3EHTUjUkYL48+12LCQVEbuuySKmNnIq4hNWUimYqLX0C3V4r7fAILVWqwMYcwBm1eyRFeGzQ0nq7Nq2QkfrmkNNDon78g9ibKhO1BDhUgo0fCkZhnAyCT/mAYcc5kAyNSobwyIg4Mm/UoptZVh6bUVRHvwF/OSWBPibYj5IaOByw5KhzAHUrzah3LuTCadQsu0z8xqQMrqdSKfxhtMB7t47Qw6EYkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XZL9sPwCr4VsdJsi1PHh3Q4O/y4yF32FKJCDM0ShQ9A=; b=Fym7W/iUTCei+iIPe2I3D8Pbc2g3Tj/hHSyFj10d+KVLTDTmpmpxZEsRR+aaQzbrseWITAuGwFLvDQ0bLmgKTlv2I2Huo2tq2lHe7x8x7lXVmvQB+3toGSj4iWay/14Xa7WCcsz2s35N+LN8IfAH5sucBFGOHFmoS9stcXSgmbex0JMtghf7boeElHQPqQHE8H5yF0rIlR9w0MIZUl3K/xIfB1AewUibuveY67+Cj+j9LFW6OL2Z4n4AA8o6Aw92V7e+AspZ4cgRANvRHpG+NIAMi1Lo2Ul3yR6Xer+8ZFy52WwZOHYV68TaLzT2C10yK8ghr53YKY+j8xoqe2Nzlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XZL9sPwCr4VsdJsi1PHh3Q4O/y4yF32FKJCDM0ShQ9A=; b=j05beaJYG3Q0W7IR4bvBARhMUtzOBWb2tQFskIRzfjRJR1yXOTkl5H8V+GGy+ZUShYti1wLbOCLpnVWT5eRx0R8PulFt3dH4ox7QrbOiqrie+B5ZVeah4ASo7Npjo7d0E2kNAiXa1hyVHpuF4SgxO3SwHJBRxz87gRFmzTeT2Z0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=prevas.dk; Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14) by VI1PR10MB3664.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:13f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.23; Fri, 17 Nov 2023 11:38:21 +0000 Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM ([fe80::8bd9:31bc:d048:af15]) by DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM ([fe80::8bd9:31bc:d048:af15%5]) with mapi id 15.20.7002.021; Fri, 17 Nov 2023 11:38:21 +0000 From: Rasmus Villemoes <rasmus.villemoes@prevas.dk> To: u-boot@lists.denx.de Cc: Marek Vasut <marex@denx.de>, Philippe Reynes <philippe.reynes@softathome.com>, Doug Zobel <douglas.zobel@climate.com>, Tom Rini <trini@konsulko.com>, Christian Gmeiner <christian.gmeiner@gmail.com>, Rasmus Villemoes <rasmus.villemoes@prevas.dk> Subject: [PATCH v2 1/6] led-uclass: honour ->label field populated by driver's own .bind Date: Fri, 17 Nov 2023 12:38:06 +0100 Message-Id: <20231117113811.149329-2-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.40.1.1.g1c60b9335d In-Reply-To: <20231117113811.149329-1-rasmus.villemoes@prevas.dk> References: <20231117113811.149329-1-rasmus.villemoes@prevas.dk> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: GVX0EPF0000FA93.SWEP280.PROD.OUTLOOK.COM (2603:10a6:144:1:0:4:0:16) To DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR10MB7100:EE_|VI1PR10MB3664:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a3545f1-48de-4dbb-613c-08dbe761b376 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fuFLIB2pYC11UViyXmLnl2b3uFLsSNImsFW1fJ4leLLtNSv/ezeX8KG8pKgoVFzxx6aI3TNFpAF7jXZOVC0572B/BRMEAye0CDaKkrd/scjbc1eyc1iPYS6A80R45pm44rQSC3+uG+kPDW3+PMX6FdgvSCeLEUJn5QI0SAVitgvhsiV7rjh6Amf8G3g0LDtDAlcVJzDnIh4LZZSi7c5jXwS6j/MZ7qLqjV3B0lfqsraxASZNZ5Fls5JX9cKyGhRkmgnChqJSh6jJMfcHE/1RdAu0ktOxHCZ+a7uUtzAT+VD/bIu31m0js5ahQtG10cHHNo2i0L9YrG3ny0KkNnZosSWGiUSCxDrZfgRVNj1TdGtJVo/rf2CC9LBZeOoa1jcP3QADKL6qokHrAo77wanMrMiL4BgtO0pL0Ur+IOBiNUiCreVKrRVrBS79BdlkN7ZzAvUnhj/djakMdDvsCrtPZvWtl5cjSrQcD+A2m1kOOZh4WRqTaFu+FF5lmhhBM49sAqGjOh9LoxDY2ostLSO32zeYHEVWUhPHAZqqr0qiWIV3N03j5yMgZOuVxksyZ8UDkyQ1o8/ehM26hlXGoF752yKen3bMDD7+VfZOx9Qj/qROTHiQroOH+quVxJkGtIomyCfZpgaKS2DhjeL7biue5A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(396003)(366004)(376002)(39840400004)(136003)(346002)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(38350700005)(52116002)(6506007)(6512007)(36756003)(6486002)(41300700001)(8976002)(8936002)(4744005)(6666004)(107886003)(5660300002)(86362001)(1076003)(8676002)(4326008)(38100700002)(26005)(2906002)(44832011)(83380400001)(66476007)(66556008)(54906003)(66946007)(478600001)(6916009)(316002)(2616005)(142923001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: buUnxLB+44Dx9uT+ltub7M5s0y2XdKQziuQY86hPCB01fz9d6FFCMzUfgMhnK0Cbx6xTGN++znNezk+uoklJko38mli6CJ5itDx2s9CSUYheYBLPzx7Ds3i9cTgQkKqcmdXkNF8V4KA8qXZQdHzol9e9h8fGaeBzGKNLaNNjoZJEHacUlmNdUxvv5VU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Nc7emYgF6nktPavu9jThisY4RWgRGvCj5aPYYL+4AVn/ZUF5vxIr6ZV7oXjts91gAWE2gqlqagTRrSNcuCNhySH6Jeof8kJ7tsTGYyHj7tTPEwhADUMED2KCjFymBho2sF5JvMcL/Vn4yb4lB2KM7QzRrc+i4KqTmzimIZV9zOZd6FRHcjJ4FF1uTCIgBWEUaXjSfAnZSJHtyt8q8xGAxWKYd8wwWEdgp3RTrSsZmcn56Ji1JbZv1L1TYZMq7fBVjGrtZdzwAc7zo9TJQ6/2niJ8ogIC2vvXEDEbAZhGLEJI3tNIbkx7PVJeAsz/k9bKwPGOF0Clfm3XJvstN53/YQE+CgCft66mLRkDA9DS5Mj3VuGdA== X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 2a3545f1-48de-4dbb-613c-08dbe761b376 X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2023 11:38:21.3329 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5l0YwAGNuuoRgXkrojz4R1HPS6JPlB5euxpJdwrmLi6NuD1mhfTFuVgfx+RarQqfYC/Je9/ZgpYjZPlJO/clTk89pLTyEKoG7LWQYDWQvsk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB3664 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
some LED patches
|
expand
|
diff --git a/drivers/led/led-uclass.c b/drivers/led/led-uclass.c index 68ca3c29702..009f1080197 100644 --- a/drivers/led/led-uclass.c +++ b/drivers/led/led-uclass.c @@ -71,7 +71,9 @@ static int led_post_bind(struct udevice *dev) struct led_uc_plat *uc_plat = dev_get_uclass_plat(dev); const char *default_state; - uc_plat->label = dev_read_string(dev, "label"); + if (!uc_plat->label) + uc_plat->label = dev_read_string(dev, "label"); + if (!uc_plat->label) uc_plat->label = ofnode_get_name(dev_ofnode(dev));