Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp574972lqh; Fri, 31 May 2024 09:41:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOn9qA3MZ9xB79BbzOi9F9x/J3TU6jvZQc67UIKLTP//IHY+Hb1DuVNBrpBAiBuNi8gDpY1osPwKfP83LDfrY+9Vigho+YylKqsk/kWg== X-Google-Smtp-Source: AGHT+IFjwuZot8ld7xbK0yBcKRfUrVuyCXo++PMlfK9ZaMJWtfo1tmLn1zkBYYRDcGZ4MRzqIPA4 X-Received: by 2002:a05:6a20:6a20:b0:1b1:d74d:87b0 with SMTP id adf61e73a8af0-1b264d5fce9mr9581455637.22.1717173665448; Fri, 31 May 2024 09:41:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717173665; cv=pass; d=google.com; s=arc-20160816; b=wmaQxgzAZlOREVwRthVcWFEgjmxDY5paxw6csQusOk7JqGMEyIgyDVuTNEFC78QoTM vGsW4wg9oQW4VYiqmHsYM2Lc9fzJ09nOtIKKwDaG1j0N/R80AW0pgOdv5PE86+bTON+h a5FCuW/pgnOERBl5S7cQtAlts74Cxd2QRpxurZw/ru8v6d5f+IFA6y3emVq9G7nROkwF tXMqo2p3EXZlEbEFd21Tv+H5DOHNEZQTKUTqNQZH+fymwBIZ+y5k8qPFv28ppjKmFY8A X5rUqz+0oygvRko4YrdIYtIFdFBSey3RgkVro0QrrlLDwEXXSzC8cKno9BIiUEd5NlL2 f5yA== 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=bNg1EAMQTcJ1bgJhlLu7wqXyeCj4UX/RWkuQEc0mYiU=; fh=XLi9m/0X8PjVhIWQEAZtk+9KXM176oIARH6s/tAj4ok=; b=Fc+RYGiGV5mMGPADs+vt+Q/WNDRwu5sXQiRjJUnTOvXNwAbZxLYRam/d1xqIeo7oaD n6ghT9dywimyQ6Ot2t413x3u3WSC7+TnMsKKVALvpIJ/hs8KC3YHG6MGrX6deYIRDQq+ nGMCcM5EnnWaD8RkBi4zIXfqHV/EWkMhhvAEJlBov7+2py0qKcnW1KPcHoO3wz9kgSIK DYslHEcfdAwRTh+NdBQYBIoOnmEBTDYMLjD+MwdHl/zqKgxnC6dqDdrh38QmBQi467gt hR9o/xCYKO8W4db+es9tdHaWJDiJeYp8h2zVPOHwxiGZmMErFowNFXIPosFYgm43fChv BQHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=YEQ6ODVG; 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-197165-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e0711fsi1882163a12.339.2024.05.31.09.41.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 09:41:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197165-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=YEQ6ODVG; 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-197165-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197165-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3192028BBDC for ; Fri, 31 May 2024 16:35:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D533817E46F; Fri, 31 May 2024 16:33:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="YEQ6ODVG" 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 5F28917D8AE; Fri, 31 May 2024 16:33:42 +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=1717173225; cv=none; b=S3OATbg7oREKh87CPDA+4GfxaLt7Kr/bP3Axh+m5vxTGVit3Dwty+OTAiIk8iSNFjIu+BVF5cMD6eT9I3oVi/iCj4etVY/qki2tPaSMAAbeLMpbsMVUqcG3WAjyA02ZBT0nzqu36m1S1eikj9Kkfr9Zs/XudDbiY3kabhONnwJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717173225; c=relaxed/simple; bh=6P/REFXkRfn4bWBytnGVypd3XVcWLfHX/2SwBqbZM9Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ftK+mJEgA/TG/8WR2iooN2OPkfpnTK0rMc1FH8pxt1sLkaMzPRZ7zU88fJumN3jjNg0qsgYE5tyNsEMmPlhksYIc0wzCQfINSWPTpVo9U6uekmsitVto9fOPmiPtZXEcM4bl31dxCIm5WjvL68tIma4vKvY1tkhsA41eg37RWuU= 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=YEQ6ODVG; 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=1717173219; bh=6P/REFXkRfn4bWBytnGVypd3XVcWLfHX/2SwBqbZM9Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YEQ6ODVG2g70bMj47WPgcisRwtBaGQFnP3v2Uml2Cy82LqBpt8HdqykhnjvqLltDb p0fcQZFZmV5uh/j6+btGH8ARK7Yn31hogxbSyYAAfFJ29RulPHhLavjbgHLeG5nNcJ vQPteVPR2iLp98JUWjdg3A8YSuGl316+xqDaytf8= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 31 May 2024 18:33:33 +0200 Subject: [PATCH v2 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: <20240531-cros_ec-led-v2-3-6cc34408b40d@weissschuh.net> References: <20240531-cros_ec-led-v2-0-6cc34408b40d@weissschuh.net> In-Reply-To: <20240531-cros_ec-led-v2-0-6cc34408b40d@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=1717173219; l=1434; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=6P/REFXkRfn4bWBytnGVypd3XVcWLfHX/2SwBqbZM9Y=; b=KgPBSTNMPiQRBdNPmlr2NPQyoeK81ZrR1G/EpJlPPAoyHUvUMqmQLYQFh+BGjRmm0lZl2TT03 TWsmqHGjsPdAVVyFdKqus3ybt2CR/OzuuTjN6yTMTzcvRBTNeM8+QI3 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.1