Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp198447lqs; Thu, 13 Jun 2024 07:49:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkIcY+/eJj3sS6rfrM2Oc+Kz+9pcoLi6spq50qE4I+WWMa40vQGcRaa4KYTIIRGTv3bOOlsnShvl8knmi9bbLNi/oFFhsB+F2V1IAMQQ== X-Google-Smtp-Source: AGHT+IHikfVJhijKj/lQU+foALHVEkjz0j3rdnFSwuzkVEp3GeQmmNm7qVG+O6sYn2PbLIQ6ItK9 X-Received: by 2002:a05:620a:40c4:b0:795:5efe:e7c with SMTP id af79cd13be357-797f60f6f24mr546284685a.12.1718290159926; Thu, 13 Jun 2024 07:49:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718290159; cv=pass; d=google.com; s=arc-20160816; b=zQyRil5owJp7ckuhOLd4wEz138UPxAvf48P0gWZkEansnmEZugTBeZCK5J96ru6AFo kHf/W79Ivqb40+advT2+zClVPJ4jC22bPyiGOjDruC3aNuTcc6cWL1YtVm7YrAEzJzK/ 3SAnk+naESBYpdCdhJg3+v6eAtFjDtttKd5rVKjO3SCUFuEyI0HRayijmpf3+kTOYNzY lCZp8xFOh+vCARp26ZIDyKmGLk442YU8mraTJQRpf47ZWqwopTdvPiiAObqFPYhex53l ybItxzQb42IbIOXkGMLhQGj1xjlxQqwEqW7uCgt4zFZjiEB1swJgHiWHH+MxKEzuPBjw c1JQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=kj2cfbLp11uu7iAzqKlCq2OIfjmp42+0YcPAt1C34f8=; fh=XLi9m/0X8PjVhIWQEAZtk+9KXM176oIARH6s/tAj4ok=; b=tfJ94qmpkSqDl1hdtsCfJPTH0aa9eOAVDq6rKjlCVmxKg/TzIr53SfFfXHd74Kn1SL 433svGXCJ/w7GoEj5+1qcBxHWkfcnr/kWsPiHZBCk5+lgqJ0Tu8haJ7IHgNm0IELUAwh UwO8X4IC9ACry9eXyFZR9Y8OQKBT+DJXooGGD8nEtkc+Fk8taAfxiM6eIXOGZLBwCinV B9orVwQSYY7Co3th6GNMHgfbtTZrtJ1czVjyyJG8gegOHku93+xgyq7zYkGShnV0nHtQ GdZOPZ2yPzgjxykj9j8pZXKFRGKpXYJQWA25IFOxMJEc3rPf7r83H5GhBgpHnL4HRmkL bHvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=EcpfRZ3u; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-213462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798abd166e0si147199985a.404.2024.06.13.07.49.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 07:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=EcpfRZ3u; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-213462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1E8AC1C22CC3 for ; Thu, 13 Jun 2024 14:49:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06226146A7B; Thu, 13 Jun 2024 14:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="EcpfRZ3u" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FC271448D7; Thu, 13 Jun 2024 14:48:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718290130; cv=none; b=oohGV54frQSGmaLstGIDhfh8TKDOxjPpHlqz0WOCxEWIF6hbRlaamCXwH2je7yi5V8ykKC4ztPfRHYp5U5hx5a3h6TLNZXCtjBwwdhdtDL7cvmrmKM6Hx8Nryapeo9ML5MltMvCFSO3J+eZVf3UNRunVsRiIgA3yeIpidjkslNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718290130; c=relaxed/simple; bh=xGK5CAoX3hqfJgz9DdqkUhpIVSEo7t/GIW+AAIYvcaw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RlWAYSLqh1m/LKvoVpngUWaaWQGoAX1+rkxEBJ6HCRuNxb4XAioODdCRBK4UF3youLbv4MzF7vMClt+0X5J3cT/Q0oWvc9Q3S8wd9DesvlJx1G8wPE9cU9WHHkLUe3UCmWW/J7ETWK6t2soIF/2JAM8B/Bb//IHLeV3VzbczxD8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=EcpfRZ3u; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1718290120; bh=xGK5CAoX3hqfJgz9DdqkUhpIVSEo7t/GIW+AAIYvcaw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EcpfRZ3u6p2ellkVSRyC2XKQq+uCEDAN/awKz4RuhuSd7M6r+wLjGNLqEEKl6JPk0 W+SCga4DoL/kque4Vr5ul1j7vfYPrDe2BP+85R0T/7yTyTX6E8Qaw292db1gx40pCl hGyi62zc53wFrvO70bcFhR6cXdhy/q4LjN/Jz6+k= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 13 Jun 2024 16:48:38 +0200 Subject: [PATCH v3 3/5] leds: core: Unexport led_colors[] array Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240613-cros_ec-led-v3-3-500b50f41e0f@weissschuh.net> References: <20240613-cros_ec-led-v3-0-500b50f41e0f@weissschuh.net> In-Reply-To: <20240613-cros_ec-led-v3-0-500b50f41e0f@weissschuh.net> To: Pavel Machek , Lee Jones , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Benson Leung , Guenter Roeck , Tzung-Bi Shih Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, Dustin Howett , Mario Limonciello , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718290119; l=1434; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=xGK5CAoX3hqfJgz9DdqkUhpIVSEo7t/GIW+AAIYvcaw=; b=z65+2JKASgSAQluTrx6XZcnjq4H7Q7ozK0ieb9s0GOlP1gBHSapstFXcUXIojpFv/+gdT9E1o W5jI1R/zxMPDKwR+u5F89s2xqK2fqUDP9MtDuR50QqN7rub8Mo8OWaC X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= There are no external users left, make the array static. Signed-off-by: Thomas Weißschuh --- drivers/leds/led-core.c | 3 +-- drivers/leds/leds.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c index e0dd2284e84a..f2cea4e094f6 100644 --- a/drivers/leds/led-core.c +++ b/drivers/leds/led-core.c @@ -25,7 +25,7 @@ EXPORT_SYMBOL_GPL(leds_list_lock); LIST_HEAD(leds_list); EXPORT_SYMBOL_GPL(leds_list); -const char * const led_colors[LED_COLOR_ID_MAX] = { +static const char * const led_colors[LED_COLOR_ID_MAX] = { [LED_COLOR_ID_WHITE] = "white", [LED_COLOR_ID_RED] = "red", [LED_COLOR_ID_GREEN] = "green", @@ -42,7 +42,6 @@ const char * const led_colors[LED_COLOR_ID_MAX] = { [LED_COLOR_ID_CYAN] = "cyan", [LED_COLOR_ID_LIME] = "lime", }; -EXPORT_SYMBOL_GPL(led_colors); static int __led_set_brightness(struct led_classdev *led_cdev, unsigned int value) { diff --git a/drivers/leds/leds.h b/drivers/leds/leds.h index 1138e2ab82e5..d7999e7372a4 100644 --- a/drivers/leds/leds.h +++ b/drivers/leds/leds.h @@ -30,6 +30,5 @@ ssize_t led_trigger_write(struct file *filp, struct kobject *kobj, extern struct rw_semaphore leds_list_lock; extern struct list_head leds_list; -extern const char * const led_colors[LED_COLOR_ID_MAX]; #endif /* __LEDS_H_INCLUDED */ -- 2.45.2