Message ID | 20240213-ktd2801-deps-v1-1-7feb5385eb9a@skole.hr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-64064-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp719208dyb; Tue, 13 Feb 2024 10:13:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXcebow8fJYuvTv+8hu+TkqTLk/Guyx6CxEHnbN+DylNBRlRs7jb/6ZWpGg5AeH1JhvJZlu+W9IDjzmXIXuMOc/t/mwmw== X-Google-Smtp-Source: AGHT+IGe9YWXq1mukFIwWRhcE3Ewzh9eoALODULpM9Sh5R4dWH+l5PzYVlyApTlgBix0E3ouMrAN X-Received: by 2002:a0c:aadb:0:b0:68d:b1:3833 with SMTP id g27-20020a0caadb000000b0068d00b13833mr214064qvb.7.1707848030166; Tue, 13 Feb 2024 10:13:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707848030; cv=pass; d=google.com; s=arc-20160816; b=HNx1Y3hgdIPfvuRXbWBvBYeFyLJboF9BQOfB00rA1yKhnoh5p0PUSJG72mMgfKBjlO bcbHfJ14OMe29qeAOa1Yr7TP3KOr4t6jCWtguNxlGCND6s/PeoUrfwhGr9FT0/Gbw6pA FXQ7o+trt0dcqcSnGUx+RyRLFINMe6UlgjRyZcalJeVGs/smPyVpuUhvZF6OXcJRwfFN 1TaMIEKGKtnZUoieuirrc+f/PiNDA7Th962xZVaMju8K4QpUz76iKC7wRCZ0p9/Mq/PC H6qJlMAFHuHZEvX/9l5f2ILSk+i0QvVCz/ROQnGyMqKlovkoOY8WINW7HmE8COYYEeAf wu1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from; bh=emQ3D3m+1U8HLyXjOAN+sDXWlsVluIivH8FDQpexBLQ=; fh=R7jgz4cZOZVvWKTLPPH6W3ww6U/5DEtgiu74VmATAJA=; b=ytccHH0LJ/P+JGrTDCwbc5M5QUrHLBt3eYbqonV/8oV/Y6e538RCL5KvZAkGO1ZCJm 3YIdTZxE2NFrd2QSpLqv43jKj2IJ12DOoySA4qeCL5QeN2+tF4G1wNLB5bROyZjp+3hz VbfhH0PrzkSUnJl6fgqgJBPYaw51YHKkVYhMA2GhtyPtNy438ukIpB7FI6E00f8Et6fy Lv3NmrOwj7ratnxHQlQmu9VUtM7cSBEdjYNN7KLbV38idbgYHUS4fg3cWPePPq3oe0Qa CeV+z35l2RwX60oT/TkdYX1fnPPbFvW62XDfcRgrxX+7pVV1WdGQ/azDZrg619Ppjs6b 0+ug==; 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-64064-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64064-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXutm9sVPnXbrqbmo3A+2I6j5SpxEouN5JmfMQW9NEA7OVC0wJuiS4bhsYxB6v9ZiGfTJNfh55nYwTsk7zd8+AtnoX7IA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gm13-20020a056214268d00b0068cb15e86a9si3394333qvb.123.2024.02.13.10.13.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 10:13:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64064-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-64064-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64064-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 EE7521C21F00 for <ouuuleilei@gmail.com>; Tue, 13 Feb 2024 18:13:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29065605D9; Tue, 13 Feb 2024 18:13:36 +0000 (UTC) Received: from mx.skole.hr (mx1.hosting.skole.hr [161.53.165.185]) (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 1D0BE604D5; Tue, 13 Feb 2024 18:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=161.53.165.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707848014; cv=none; b=i2ABn8SUgS+B2REKUu4f8XmiK255RMuiTI7fvLJMCQiBZ5IHOYJrAxKg8zygDJTuiDL3f+KUFnw6SY+/J8B/kqDMqfNrI45K5+2gtlD4O7hDPShK9hLck/bDlo3l5UeLrNvuuiT3CEDfQ7fgXsm0zBWTcsMo+TA5J6phxL0WYRI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707848014; c=relaxed/simple; bh=U+6rlt5Ta8MmGgRR4Hf8eIhUKZgfMXsWUZk6oX3Js04=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=dTzvMoq2ElXY+urZzLsVt8XeV5RmvxQCq7IjDdmmOU1uDVfV4dwtNtiQfRUgjbPZVnEhRE+rcLsIRqLhfi6s9V0x6ZPVbKhr7FBMfKgXkVoDMX8cCnGUAhOCQMd1u5R+aFg3mJhGocm0BX3WMISE6Rm2yQiVeU/oNSQ7jw8/SUc= 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.185 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 mx1.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id CD1F9873CC; Tue, 13 Feb 2024 19:13:27 +0100 (CET) From: =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Date: Tue, 13 Feb 2024 19:12:33 +0100 Subject: [PATCH] backlight: ktd2801: depend on GPIOLIB 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: <20240213-ktd2801-deps-v1-1-7feb5385eb9a@skole.hr> X-B4-Tracking: v=1; b=H4sIABCxy2UC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDI0Nj3eySFCMLA0PdlNSCYl2DNFNzw2QDyyQLIxMloJaCotS0zAqwcdG xtbUAviWRL14AAAA= To: Lee Jones <lee@kernel.org>, Daniel Thompson <daniel.thompson@linaro.org>, Jingoo Han <jingoohan1@gmail.com>, Helge Deller <deller@gmx.de>, Linus Walleij <linus.walleij@linaro.org>, =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Cc: Arnd Bergmann <arnd@kernel.org>, Karel Balej <balejk@matfyz.cz>, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1130; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=U+6rlt5Ta8MmGgRR4Hf8eIhUKZgfMXsWUZk6oX3Js04=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBly7ETl3iXiBasGYGxNzalU0t7/uTvFbWgKXkMI l0VLMuc26GJAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZcuxEwAKCRCaEZ6wQi2W 4YkmEACKMl/X2GJUWXOA57RLxzb3s5i8nLgTWk9quyZcge6rleXOSuP7FUP/x7xOk0ifXg8CUgF mDSSa69nLnkdwGIMblSgBKk9qaJESt9J0AXUgkZrBC96+3Iqf5f3+GGQoir/dc1z8pOOpyTJUu4 b1mUu6qSl0flypP0F03YWOz7v53vRW3guhkCkUxaOkLU6U2cvZhKdvEN9Cey15JsIe5C+C9GcjD VNVl6wA3ju8uloRRGjIUV6FUkkf574BSWJVhu8uZvZqStkoe+aHxx2X4YQOQLXC+YFhnZ0JPf0c ay8/tIhW9Kk5Cp1qNhow853GYIDb8GX6leqVr99yx/MKMA1WinkHCToGA9JzocQDqjkaMnUNwGk 6Zk2T0njowSWKEVfTcQ45xRVo7Ny+osaGcpFdXrWJB2hXn1Lte+CrgsXWJ5zLPjBrO4s7fYgRh2 nnm6qt67d8+p9agbm8JtK1bMQ361ATNr26BS6u4TexyEizkDz27nzjdjuBCmvoRiRdIbbL6CuW6 Hyrpw8LJOtY2XYmhSQeOHa2uuH9jn/kYkxOyq7ZBvNrRq2pjGZRKD3t9rti7vB62QenQqr2N22f 42CYcE97jPJlQJYsJQ+IcaywKBKHdkOpF04cSttg6YTIVYl+Hl9BbuNgBBzochXi2LIZjc+qaS2 yjy3ToDWXhgUJAA== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790808455647351281 X-GMAIL-MSGID: 1790808455647351281 |
Series |
backlight: ktd2801: depend on GPIOLIB
|
|
Commit Message
Duje Mihanović
Feb. 13, 2024, 6:12 p.m. UTC
LEDS_EXPRESSWIRE depends on GPIOLIB, and so must anything selecting it:
WARNING: unmet direct dependencies detected for LEDS_EXPRESSWIRE
Depends on [n]: NEW_LEDS [=y] && GPIOLIB [=n]
Selected by [m]:
- BACKLIGHT_KTD2801 [=m] && HAS_IOMEM [=y] && BACKLIGHT_CLASS_DEVICE [=m]
Fixes: 66c76c1cd984 ("backlight: Add Kinetic KTD2801 backlight support")
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
---
drivers/video/backlight/Kconfig | 1 +
1 file changed, 1 insertion(+)
---
base-commit: 46d4e2eb58e14c8935fa0e27d16d4c62ef82849a
change-id: 20240213-ktd2801-deps-0f571c09b824
Best regards,
Comments
On Tue, Feb 13, 2024 at 07:12:33PM +0100, Duje Mihanović wrote: > LEDS_EXPRESSWIRE depends on GPIOLIB, and so must anything selecting it: > > WARNING: unmet direct dependencies detected for LEDS_EXPRESSWIRE > Depends on [n]: NEW_LEDS [=y] && GPIOLIB [=n] > Selected by [m]: > - BACKLIGHT_KTD2801 [=m] && HAS_IOMEM [=y] && BACKLIGHT_CLASS_DEVICE [=m] > > Fixes: 66c76c1cd984 ("backlight: Add Kinetic KTD2801 backlight support") > Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Daniel.
On Tue, Feb 13, 2024 at 7:13 PM Duje Mihanović <duje.mihanovic@skole.hr> wrote: > LEDS_EXPRESSWIRE depends on GPIOLIB, and so must anything selecting it: > > WARNING: unmet direct dependencies detected for LEDS_EXPRESSWIRE > Depends on [n]: NEW_LEDS [=y] && GPIOLIB [=n] > Selected by [m]: > - BACKLIGHT_KTD2801 [=m] && HAS_IOMEM [=y] && BACKLIGHT_CLASS_DEVICE [=m] > > Fixes: 66c76c1cd984 ("backlight: Add Kinetic KTD2801 backlight support") > Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr> Acked-by: Linus Walleij <linus.walleij@linaro.org> Technically you can also select GPIOLIB, because it is available on all platforms, so it may be easier for users, but then you never know which GPIOs you get in practice. Yours, Linus Walleij
On Thursday, February 15, 2024 2:31:37 PM CET Linus Walleij wrote: > On Tue, Feb 13, 2024 at 7:13 PM Duje Mihanović <duje.mihanovic@skole.hr> wrote: > > LEDS_EXPRESSWIRE depends on GPIOLIB, and so must anything selecting it: > > > > WARNING: unmet direct dependencies detected for LEDS_EXPRESSWIRE > > > > Depends on [n]: NEW_LEDS [=y] && GPIOLIB [=n] > > Selected by [m]: > > - BACKLIGHT_KTD2801 [=m] && HAS_IOMEM [=y] && BACKLIGHT_CLASS_DEVICE [=m] > > > > Fixes: 66c76c1cd984 ("backlight: Add Kinetic KTD2801 backlight support") > > Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr> > > Acked-by: Linus Walleij <linus.walleij@linaro.org> > > Technically you can also select GPIOLIB, because it is available on > all platforms, so it may be easier for users, but then you never know > which GPIOs you get in practice. Now that I think of it, wouldn't that be the better solution? I opted for "depends on" only because Arnd did the same in his KTD2692 patch, but if select is better (and it seems to be for users) then I'd go for that in both patches. Regards,
diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig index 230bca07b09d..8bd88017d945 100644 --- a/drivers/video/backlight/Kconfig +++ b/drivers/video/backlight/Kconfig @@ -185,6 +185,7 @@ config BACKLIGHT_KTD253 config BACKLIGHT_KTD2801 tristate "Backlight Driver for Kinetic KTD2801" + depends on GPIOLIB select LEDS_EXPRESSWIRE help Say Y to enable the backlight driver for the Kinetic KTD2801 1-wire