Message ID | 20240216-expresswire-deps-v2-2-8be59c4a75f5@skole.hr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-69358-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp791447dyb; Fri, 16 Feb 2024 13:17:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVwbK44K/2hc4QHac4NeEobJ4B+RcnY8f8bV5L0wjON2SmV0y4AtuaTpZUmHv06m/hZtHLblXh0xCPfF3Da6OT6f2x4Aw== X-Google-Smtp-Source: AGHT+IFZk9AWQYkezj6Kdg25diWjed5Ye/wHMn1d7nKr7bYsNzbgnIsnPi5emJOuiR8y0Lkzzetk X-Received: by 2002:ac8:4e83:0:b0:42d:d97c:9bc6 with SMTP id 3-20020ac84e83000000b0042dd97c9bc6mr4814822qtp.32.1708118270210; Fri, 16 Feb 2024 13:17:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708118270; cv=pass; d=google.com; s=arc-20160816; b=kEr4FRwxxm5rtw/J26VC/f8iLhvgy8EPEHWo0/LfuX06caGqY8xVvSrZtoocZpGmuJ yWmGXzQuU8s5DUwnrxplAZ2k5ViVF5IqJkWV/fRy4MJ9NG62oHQlozKpGrS/vSa8pgkG bmDAiztPVjMEM9QSjf74/OSF1sWOPOh/C2xPSxMqRntm0G/XZAcbhyqdFqb/sgqtLFBK vXAjdm+M3M3vSGkdXivCKgYwWFlE5ZjoK5Mv4oPW4l6c1/K+/2/nF/BkCPxtuVbHP0tV ttzl/z5/LIsxDfCw6+93uE/swmz4rqKd0bWV+ijSAOkB/tW8gK6K8U8Bmj71m5PmMTfW mRtA== 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; bh=Xl0xK0h90svCdDAvpBthhRdc+Lb45SiDtL4cQSROt2U=; fh=Vy3D7X+kGJXFHD2x9KT79xFt0FRK6sg83/o9ufFjWMc=; b=mrsprcEU4gq2n9arjF2QQXceKLh1BzZf29nNSgOl6nsecr3SvBf0+ySN+qn5MAaV8Q 5kGR8iQ/BMI7IJC0NNjA48bnIBVj1hH+D7q0dBairkubS49U6W8ut3HATYk4GIA0zz4L e0X/MG6LL2Niz6u0AlYv06jgKV8VC931mhwqSmxwof/QI0FX3MBCNdyLn74SlN+RyPmg gZZ7o507reQY5cfjwEyVKTe2gss2dz6twubfvpMxMmijApaDjsfbPNeXkH4cU6KCp7BS 3F/btnvITL+m0MTrW9O0ZXRZSHU9GSZ3so4vnko0ZHB+JxSLh/d6XjG37Hau2sLvXBP3 LWOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-69358-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69358-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d4-20020a05620a240400b00785d98c751csi908394qkn.662.2024.02.16.13.17.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 13:17:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69358-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-69358-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69358-ouuuleilei=gmail.com@vger.kernel.org" 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 080D21C20B91 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 21:17:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 956151487C0; Fri, 16 Feb 2024 21:16:59 +0000 (UTC) Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) (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 EF5F11420DE; Fri, 16 Feb 2024 21:16:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=161.53.165.186 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708118218; cv=none; b=p62i/zXkcnYD+MmAlLG9DOfN3KmIP8BMGMPWqhDN9ukaXG8UDTySEldjBFKRRIG/MCRLggY/wq0QeE83nM1YgSBXyLOQFjQQC2Kagm8s0f4SK9RNefYmgiNYvs8WTOjHZ11+6bvd88t6owt3qFherhLaxWJZsuA5l/Or+szkz0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708118218; c=relaxed/simple; bh=ilUd2XEnYNcfkPcVbpE92eytf80u0600eDPMHH5G6bY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nh9kKxaPcUSC8+N8eyO4e1LMnM7hXSH9TgylfhvukioPqF0D0MYH9B5JTF9dN1IZismoTZpdR5fZcp02DoaZSyZGvKAzWAIpSGnDMtsVTmEL0zZUhwf9e6v0EylOlISpPYPjHp2+jzIUdCVgDMJUsmn3h+bTV1vdwmAuUwucPx8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr; spf=pass smtp.mailfrom=skole.hr; arc=none smtp.client-ip=161.53.165.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=skole.hr Received: from mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 0A4F987249; Fri, 16 Feb 2024 22:16:47 +0100 (CET) From: =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Date: Fri, 16 Feb 2024 22:15:44 +0100 Subject: [PATCH v2 2/2] leds: expresswire: don't depend on NEW_LEDS Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240216-expresswire-deps-v2-2-8be59c4a75f5@skole.hr> References: <20240216-expresswire-deps-v2-0-8be59c4a75f5@skole.hr> In-Reply-To: <20240216-expresswire-deps-v2-0-8be59c4a75f5@skole.hr> To: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>, Daniel Thompson <daniel.thompson@linaro.org>, Linus Walleij <linus.walleij@linaro.org>, Arnd Bergmann <arnd@arndb.de> Cc: Flavio Suligoi <f.suligoi@asem.it>, Hans de Goede <hdegoede@redhat.com>, Jianhua Lu <lujianhua000@gmail.com>, "Matthew Wilcox (Oracle)" <willy@infradead.org>, Helge Deller <deller@gmx.de>, Jingoo Han <jingoohan1@gmail.com>, Karel Balej <balejk@matfyz.cz>, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr>, kernel test robot <lkp@intel.com> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2063; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=ilUd2XEnYNcfkPcVbpE92eytf80u0600eDPMHH5G6bY=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBlz9CFbQMadin7Zla/M2jnk+iQ4GhiLeNoguKar l1fhos+V66JAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZc/QhQAKCRCaEZ6wQi2W 4e5nD/9KEaP/IJ5aCnN9dT5oMviYaX+wYXZI5R60COC8fWdFX0HrlrZL8u44u4GR1W5TgbNFsdL Z3NNqjzgV84k0a5fNIslVFCKi4GUCWrj4xaA+6vuN+iBw+e7fls5IN1wqHWqnmpjLqmC1tkT+Tb 7SGnrwm3P0lUkZthiAX3Ox1fmKMBJfDSmT3NntRlLbO8pcjylfNOWnYOKvMMtIVxJvmFrMSl6Iy eqq/wa1RJpN+15orAfXTU1OB5/NuPseaIoN9FvWuyX26LV0oEHJJ1dYLwWCZ+aUSEtj8FFCtMyP H7VVrIW8jrD18Hv+KCog8JJcOZ1PCTDaA/U/M7GhMJY9lMHDu1U/ekxbgfZzDWUjTqi2ebUA9MU 7U1NwcqfQ5hlDykSBzKZbLxbxrWQXB05miTWlE55+PAiz+t+k9oVMno8wlqpCmaUdHZvg30+kL8 KhodxUneOoU7fmTz9uWxqqbYa064GnK0Pv13fGP9121TIrxtx7Zpghp7RcffeQU0YiYhNJfNMDO G9oa58a0t0W589NGvH64zFZDjVMABnmuAMKQ5aiS5e3O/6QS3EOa7sIFDbQfwP8wKZDtoEVF44d Eo7lxKkX8sAzs9Pdqd5BCsqPEdI6MVhOKuXW9Rt4zyF/CzrIJdqgAguBTX1jy3nyNl5dzzKCxPe 690wlyjR4kIHKgA== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791091823298659447 X-GMAIL-MSGID: 1791091823298659447 |
Series |
leds: expresswire: Fix dependencies
|
|
Commit Message
Duje Mihanović
Feb. 16, 2024, 9:15 p.m. UTC
The ExpressWire library does not depend on NEW_LEDS and selecting it from a subsystem other than LEDs may cause Kconfig warnings: WARNING: unmet direct dependencies detected for LEDS_EXPRESSWIRE Depends on [n]: NEW_LEDS [=n] && GPIOLIB [=y] Selected by [y]: - BACKLIGHT_KTD2801 [=y] && HAS_IOMEM [=y] && BACKLIGHT_CLASS_DEVICE [=y] Move it out of the "if NEW_LEDS" block to allow selection from other subsystems (in particular backlight) without raising this warning. Reported-by: Arnd Bergmann <arnd@arndb.de> Closes: https://lore.kernel.org/20240212111819.936815-1-arnd@kernel.org Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202402161410.IG9I4odj-lkp@intel.com/ Suggested-by: Daniel Thompson <daniel.thompson@linaro.org> Fixes: 25ae5f5f4168 ("leds: Introduce ExpressWire library") Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr> --- Changes in v2: - Change Link: to Closes: to silence checkpatch - Add kernel test robot's error report --- drivers/leds/Kconfig | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 52328d295b4e..66998b938ed3 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -6,6 +6,12 @@ config LEDS_GPIO_REGISTER As this function is used by arch code it must not be compiled as a module. +# This library does not depend on NEW_LEDS and must be independent so it can be +# selected from other subsystems (specifically backlight). +config LEDS_EXPRESSWIRE + bool + depends on GPIOLIB + menuconfig NEW_LEDS bool "LED Support" help @@ -186,10 +192,6 @@ config LEDS_EL15203000 To compile this driver as a module, choose M here: the module will be called leds-el15203000. -config LEDS_EXPRESSWIRE - bool - depends on GPIOLIB - config LEDS_TURRIS_OMNIA tristate "LED support for CZ.NIC's Turris Omnia" depends on LEDS_CLASS_MULTICOLOR