From patchwork Fri May 28 20:23:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 449512 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp682346jac; Fri, 28 May 2021 13:26:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx66usxqM9/O1eRcPB1pvK2frIU0HPXm9rRrlnPKzluj3v810SzycHF395Jafoyr1vZScSJ X-Received: by 2002:a17:907:b03:: with SMTP id h3mr10775067ejl.118.1622233575392; Fri, 28 May 2021 13:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622233575; cv=none; d=google.com; s=arc-20160816; b=d+oAjc+xOftqyBcGC8Ri0gpVKYQCrwY5ChGA+UNW+yfsfZk7g4rqC1Bo/6fXSZ7URw ByM5zrCWIp8XCebokVW0395HBxtQfLus7LYVagECjdCzBOGa+ZG88CowLfp/hWbL27Zs A3jYU1DtgkUp4TmrphmN25AKI6Tk/kb0QtyefOo5aa77BHGKSl+cSHjdikySX8L7vWvv 5MHw55xi2XjKCEO5zsesWG6bjXDlGCNZA3Dj6javL+pgMWjCdj0il5LroR3YNJWeIqXO P/K9lCjbZRBIFzpUW+dwGby9qHq0UKwxZ5KrKMWj2VaZKdFlzsJwwMUisWWVXATBXEFz nVIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7/Eg1spwq71+WIMd8JequNMmAScxgsfqLFxwn1RWlpc=; b=zHosg8aTIB9erVUVd/kmOykpUd37S78aeBoiov0YM8Rfm6LrzTOomNsxdq6+vdJ4v2 1bRtcS/TAs0D6ZgCG26hNz3CEkDoP0Eo4spX7BOknCKNOn+sRZgM+H+q7YXVgspAScIC jMZCTfnbZ8cMpfPe+/I8Qttcua8SHlYqqOJ6GmcStXomwce3SBgWWjRjNuHm3x6kip9O aJzolPNKkL0hdntZ2FwzEzu6Qxem2Cuc97Cef7RA9P+nCNCuU+9tpPWsg4oBAPRog3WS GGQl10+c3ZuFocx+8ARJYFJU0cq9UtRGhBqO/76Pc+hkm1Xn8oKgS2oxso048UQ43S0z 0DmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cpjYKywI; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si5747897edx.557.2021.05.28.13.26.15 for ; Fri, 28 May 2021 13:26:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cpjYKywI; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229482AbhE1U1t (ORCPT ); Fri, 28 May 2021 16:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbhE1U1r (ORCPT ); Fri, 28 May 2021 16:27:47 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B71ABC061574 for ; Fri, 28 May 2021 13:26:11 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id o8so6885481ljp.0 for ; Fri, 28 May 2021 13:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7/Eg1spwq71+WIMd8JequNMmAScxgsfqLFxwn1RWlpc=; b=cpjYKywILmExqavhWuMBsvDpjQegojOQVNfHsqi3MephD1tVK5sHFXp1BTBm9K2sNu zWIw7dm1QjLkJrg5SSQmmx4Si6nGwkfb73Uoh1XLH3Ik0xVBMy2ZMCFSOJ8HDVX2Qg27 dyRZ+GZUI+NUgCchLvd6mqB7n55txXZImhK1WJv8bpm/29ItwdbhwbWTM7QwVuK3guE5 fTKmiuvFr1Ag18LGiW1JWi0Ucm+9BsaH03JGv9Ag70x0FT0ix0xlYELiNutiZc4Wsr57 zo5vEJfMQOh1ppSv+/ZghKGPHfz6ttK9YSKNU0IYnaxRLB7ODEFi6EhRQMyE0yLJEtv/ LCcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7/Eg1spwq71+WIMd8JequNMmAScxgsfqLFxwn1RWlpc=; b=rxibcfSLmoE5gMjvz0W56Q7bBnKD+2X9x0GPcTi5TdmVWJkjbB7hCI+n87gZPL4+rn h3tB0ZFoniw7pihecEjQSAWXO10aFKE9emdgRbbM904u7jnesVRWYSTrkaHlIEG3Dhyd T//eOFQSZjbsbQNfaVh4L7SMC1ik8gImX4TM0GY9Sn0+WiffmWOuHYUHYmq/AytGJkOG dSLfFjZYbdTi1tsh4g8vnvY3Wii/l8BAkWiXRROACuApPEHNyXBXlYN5wkU5BwyDml9K biA+uJzR6yooPpctqIO7XsdT0EBl1/XEPxz/kixEt+smOIRFceW5j4W2mJIaeWBnprva lkgg== X-Gm-Message-State: AOAM531g7+vyizuMNd2hAP9lH0UmCVyEhQaBYSEv1D3OAP6mNLMArps1 2NMvCz+PtWvsgFcc8O/HrKtgbBgTxuy4kA== X-Received: by 2002:a05:651c:3cc:: with SMTP id f12mr7892995ljp.364.1622233570105; Fri, 28 May 2021 13:26:10 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id q184sm709908ljb.54.2021.05.28.13.26.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 13:26:09 -0700 (PDT) From: Linus Walleij To: Pavel Machek Cc: linux-leds@vger.kernel.org, Linus Walleij , Jacek Anaszewski Subject: [PATCH 1/6] leds: aat1290: Move driver to flash subdirectory Date: Fri, 28 May 2021 22:23:59 +0200 Message-Id: <20210528202404.431859-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org We created a subdirectory for LED drivers that depend on CONFIG_LEDS_CLASS_FLASH, and this driver does so let's move it there. Cc: Jacek Anaszewski Signed-off-by: Linus Walleij --- drivers/leds/Kconfig | 10 ---------- drivers/leds/Makefile | 1 - drivers/leds/flash/Kconfig | 9 +++++++++ drivers/leds/flash/Makefile | 1 + drivers/leds/{ => flash}/leds-aat1290.c | 0 5 files changed, 10 insertions(+), 11 deletions(-) rename drivers/leds/{ => flash}/leds-aat1290.c (100%) -- 2.31.1 Acked-by: Jacek Anaszewski diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index bdf16180f5ff..a350d8fbb085 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -59,16 +59,6 @@ config LEDS_88PM860X This option enables support for on-chip LED drivers found on Marvell Semiconductor 88PM8606 PMIC. -config LEDS_AAT1290 - tristate "LED support for the AAT1290" - depends on LEDS_CLASS_FLASH - depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS - depends on GPIOLIB || COMPILE_TEST - depends on OF - depends on PINCTRL - help - This option enables support for the LEDs on the AAT1290. - config LEDS_AN30259A tristate "LED support for Panasonic AN30259A" depends on LEDS_CLASS && I2C && OF diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile index 7e604d3028c8..c7231975837a 100644 --- a/drivers/leds/Makefile +++ b/drivers/leds/Makefile @@ -9,7 +9,6 @@ obj-$(CONFIG_LEDS_TRIGGERS) += led-triggers.o # LED Platform Drivers (keep this sorted, M-| sort) obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o -obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o obj-$(CONFIG_LEDS_ACER_A500) += leds-acer-a500.o obj-$(CONFIG_LEDS_ADP5520) += leds-adp5520.o obj-$(CONFIG_LEDS_AN30259A) += leds-an30259a.o diff --git a/drivers/leds/flash/Kconfig b/drivers/leds/flash/Kconfig index 3f49f3edbffb..736153b0bfd6 100644 --- a/drivers/leds/flash/Kconfig +++ b/drivers/leds/flash/Kconfig @@ -2,6 +2,15 @@ if LEDS_CLASS_FLASH +config LEDS_AAT1290 + tristate "LED support for the AAT1290" + depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS + depends on GPIOLIB || COMPILE_TEST + depends on OF + depends on PINCTRL + help + This option enables support for the LEDs on the AAT1290. + config LEDS_RT4505 tristate "LED support for RT4505 flashlight controller" depends on I2C && OF diff --git a/drivers/leds/flash/Makefile b/drivers/leds/flash/Makefile index 09aee561f769..11bec5881d51 100644 --- a/drivers/leds/flash/Makefile +++ b/drivers/leds/flash/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o diff --git a/drivers/leds/leds-aat1290.c b/drivers/leds/flash/leds-aat1290.c similarity index 100% rename from drivers/leds/leds-aat1290.c rename to drivers/leds/flash/leds-aat1290.c From patchwork Fri May 28 20:24:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 449513 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp682462jac; Fri, 28 May 2021 13:26:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8rF9m++TYEeFR6cEyqjbXWiKEkh0PqrgmO4sju0JxzHUdpRug2oFcLdO1XhfGzOXYG3oC X-Received: by 2002:a17:906:134e:: with SMTP id x14mr10746244ejb.190.1622233589096; Fri, 28 May 2021 13:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622233589; cv=none; d=google.com; s=arc-20160816; b=LNjOZ/8rn0cZGIwLCNGW8gekgIs71uat7fKc4Bm2TvCAqtQAWK+AccCjkq2haD515T ZTgK3q5wXk8/+1QCk0QLESAq5M19BOzws1ok7bji4cwvenz5lJnjWu1kY5y56Ly0jaH0 JKDlRY9MfDDvXMybGVbQSyz8dRpm1Ijrx9kr0AmSyx5RmjnJtl3eEVJve87S66xthUbA GXNit4P5ccotNQ1tjmWc7/cDARGaT704BPfz5Db2c+g9am6UzyiVlA3DMaspB4f0a2an u8gOfEGvbrMFlF3GNCfwBuURUod2iPF3Ct9k8/a1T/9rCgM9oTxnZKMcIFUIXshmNSmJ 6yoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TUAKJ8IRCN2U1wad/t83HjVoTxsdfaJu8QUZUEqiiJQ=; b=XeRyhy+B0SCj+sjVUIsQijlBeptxBxgClR5gfjh5ZQOqJ1JH/Z9dG+2UHWb3Nl9OX0 OSfHO0fPEf5QFY7/gD3c1ZMbiZojT5nhHIiCul8B75k5VuZmLiNTwL/X4mvhCOln1U1v qJzr+6IT3cQHeH51DnLGdwBHIL+F+Q/m7iQ3XJYLIP2O+UHi2qWrFPrPupFImqI/XBbo CsfhAVstt/fUWlsQPnvfLpvy5Q7LgAhRR/BCAnmSxgBTFN1shF/p3LIHaWy4NqEUxVYx ftEyu5fKOB7kS7ngTLTfpNgBjdJ2RR8vizDv51VT/jVy7DakhHnJemyJ3z2oMqg+gYMM 3YsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FUN3yNvl; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si5747897edx.557.2021.05.28.13.26.28 for ; Fri, 28 May 2021 13:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FUN3yNvl; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229607AbhE1U2D (ORCPT ); Fri, 28 May 2021 16:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbhE1U2C (ORCPT ); Fri, 28 May 2021 16:28:02 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37D30C061574 for ; Fri, 28 May 2021 13:26:26 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id v5so6773638ljg.12 for ; Fri, 28 May 2021 13:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TUAKJ8IRCN2U1wad/t83HjVoTxsdfaJu8QUZUEqiiJQ=; b=FUN3yNvlbZ797gZbXALu0DJEmoA+gYIgge+1zASsWygYRD1VIFqeUxLTRELMeY0bcW pXNTQVeLiWfvzZvpUu3+naPd/NdqD/1VJyVns2UHj4QAKfWZQ5LB9CY8zCT77eMJbRW7 aTst78VhGnrJ5RME8fcgb5mfDmqiYRqbIlrTAMbRK4k4s15Phawto6dU1n/RIBWXwqJc Teez/ZNMMPS2XRm9nPRz3OTNd0Dh9zcGFE+L1WJD2CyCBSDxAVBkAbyNTRJW9YYNH0Bp CUwecdWhyeDVPSY4Ylkq4DIw2+ByD/fyzru0CIZNvMjCN5M7CsilGi4oTGCbPI/oUrbc rzPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TUAKJ8IRCN2U1wad/t83HjVoTxsdfaJu8QUZUEqiiJQ=; b=DCsdR2v32ID7N5AMVFWvHZEPLpo7oSmxYVG45zEfuvUKjPN0rYoZ9OtzJvPIu84Jz/ dLZHezgnAPRAF9901g9VYTreIM396XPoZBsY4bPpndK7oLqltq4mB/qqDw+h4hKTjV74 yOddEZ1Z6ZYwu31vOWBo166KK7UGnwmof3eZCpQ2icLpiOrWQhhijFryTo8htDHzLiSc tvGHtvBOxexjToY9gZUv47ZIzcstBf+XkTtnX0OcOsCYhLN3vG1adFmarJ9/O3Eg6Ar7 X5y8kA76ZrK7TsSoBRfGYbsQeBn49bRzZviThJDyaN2laf7XELZv1HeQdgdghVimg9Ly Munw== X-Gm-Message-State: AOAM531HBU5ANTv8bdZ57Aw+3DZd4eqqQZIsx7bQd8JNbwywCoA9EBon 5ElYndCPI5DzTg2iU2mvRefp5iv+RqhIVg== X-Received: by 2002:a05:651c:232:: with SMTP id z18mr8088066ljn.489.1622233584587; Fri, 28 May 2021 13:26:24 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id q184sm709908ljb.54.2021.05.28.13.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 13:26:24 -0700 (PDT) From: Linus Walleij To: Pavel Machek Cc: linux-leds@vger.kernel.org, Linus Walleij , Sakari Ailus Subject: [PATCH 2/6] leds: as3645a: Move driver to flash subdirectory Date: Fri, 28 May 2021 22:24:00 +0200 Message-Id: <20210528202404.431859-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210528202404.431859-1-linus.walleij@linaro.org> References: <20210528202404.431859-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org We created a subdirectory for LED drivers that depend on CONFIG_LEDS_CLASS_FLASH, and this driver does so let's move it there. Cc: Sakari Ailus Signed-off-by: Linus Walleij --- MAINTAINERS | 2 +- drivers/leds/Kconfig | 9 --------- drivers/leds/Makefile | 1 - drivers/leds/flash/Kconfig | 9 +++++++++ drivers/leds/flash/Makefile | 1 + drivers/leds/{ => flash}/leds-as3645a.c | 0 6 files changed, 11 insertions(+), 11 deletions(-) rename drivers/leds/{ => flash}/leds-as3645a.c (100%) -- 2.31.1 Acked-by: Sakari Ailus diff --git a/MAINTAINERS b/MAINTAINERS index bd7aff0c120f..7816098d09b9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2793,7 +2793,7 @@ AS3645A LED FLASH CONTROLLER DRIVER M: Sakari Ailus L: linux-leds@vger.kernel.org S: Maintained -F: drivers/leds/leds-as3645a.c +F: drivers/leds/flash/leds-as3645a.c ASAHI KASEI AK7375 LENS VOICE COIL DRIVER M: Tianshu Qiu diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index a350d8fbb085..cfa6b8194b6b 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -94,15 +94,6 @@ config LEDS_ARIEL Say Y to if your machine is a Dell Wyse 3020 thin client. -config LEDS_AS3645A - tristate "AS3645A and LM3555 LED flash controllers support" - depends on I2C && LEDS_CLASS_FLASH - depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS - help - Enable LED flash class support for AS3645A LED flash - controller. V4L2 flash API is provided as well if - CONFIG_V4L2_FLASH_API is enabled. - config LEDS_AW2013 tristate "LED support for Awinic AW2013" depends on LEDS_CLASS && I2C && OF diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile index c7231975837a..a3a6fda8ab99 100644 --- a/drivers/leds/Makefile +++ b/drivers/leds/Makefile @@ -14,7 +14,6 @@ obj-$(CONFIG_LEDS_ADP5520) += leds-adp5520.o obj-$(CONFIG_LEDS_AN30259A) += leds-an30259a.o obj-$(CONFIG_LEDS_APU) += leds-apu.o obj-$(CONFIG_LEDS_ARIEL) += leds-ariel.o -obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o obj-$(CONFIG_LEDS_AW2013) += leds-aw2013.o obj-$(CONFIG_LEDS_BCM6328) += leds-bcm6328.o diff --git a/drivers/leds/flash/Kconfig b/drivers/leds/flash/Kconfig index 736153b0bfd6..1126ad3954b6 100644 --- a/drivers/leds/flash/Kconfig +++ b/drivers/leds/flash/Kconfig @@ -11,6 +11,15 @@ config LEDS_AAT1290 help This option enables support for the LEDs on the AAT1290. +config LEDS_AS3645A + tristate "AS3645A and LM3555 LED flash controllers support" + depends on I2C + depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS + help + Enable LED flash class support for AS3645A LED flash + controller. V4L2 flash API is provided as well if + CONFIG_V4L2_FLASH_API is enabled. + config LEDS_RT4505 tristate "LED support for RT4505 flashlight controller" depends on I2C && OF diff --git a/drivers/leds/flash/Makefile b/drivers/leds/flash/Makefile index 11bec5881d51..9bb2fccee047 100644 --- a/drivers/leds/flash/Makefile +++ b/drivers/leds/flash/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o +obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/flash/leds-as3645a.c similarity index 100% rename from drivers/leds/leds-as3645a.c rename to drivers/leds/flash/leds-as3645a.c From patchwork Fri May 28 20:24:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 449514 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp682465jac; Fri, 28 May 2021 13:26:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeGu1Q+C0AkH5V9i7L9cQj2NQZFs82E5Ot5WvKAaRVLk2Mg6LOM4gOGfJ8hi9MrC9MAp2l X-Received: by 2002:a17:906:a017:: with SMTP id p23mr10990391ejy.460.1622233589438; Fri, 28 May 2021 13:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622233589; cv=none; d=google.com; s=arc-20160816; b=CXKHJ2V4VWuOlaUlh6AE02sip6wBio/5TveDJYjTeI9Cv4L1rJEFzU2ihPqvScZISI FbwlaD63CPSrPClBqAMhNd34EcxSXE5TDUAq6ojniymVPz9nnDgB3sMTXn2DBzwiHYGL MkLlC4PGxzWNa0jG3UnUGbmribHkZyxWH5dpBaM9yXUfgXl4Zh7dRj882x0w7RYfN6Bi 4dTnMlflV/vLBWxh5By63ma5YcMLCPCsSghLyGRiVSdwsEaWvV1kZVTAEiuadxe9ilDW tEsNhDpPqG+OEGHksDKDfN/SjNbYI/hGUs4dfW8+idVFFvi1UynmRrwqwiR+z+r7omDc GZTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uCly6lMG0kzW4R5BHWVku0EV4SlEDlhFqYn8kAXDDic=; b=I+ue80ocjyAsxlyNb7CtugVPmSarTQpMgaGQLrtdD5cbQE+UDiXUlOajmR9qlMHBCR KTQ1ucJGnfjXQJhTqFPFqDg7UEfzXBT+oBWysurQRgmA51hvi216vVYKzfgMqotzp3nF UuqwKG+ZPzPC3Gh6o3brZxs6thPhVVPt409Pngpx200HQSoW1jxEkj6CwGKLihaFjoTf dPANzmrAnB9EGCuAPL//IFlAljhf4T3KuycJEkHM50rKc+8bKBD/2jU4UF+iLUvWJbE8 i1Bzsg+HANFgbEmYT648d8dIhSMPIokSGLMUnzq02N9pYWULvIjpFCdDYfyCgKkB2Vic 0FQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nkDkfoKm; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si5747897edx.557.2021.05.28.13.26.29 for ; Fri, 28 May 2021 13:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nkDkfoKm; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229563AbhE1U2D (ORCPT ); Fri, 28 May 2021 16:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbhE1U2D (ORCPT ); Fri, 28 May 2021 16:28:03 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84017C06174A for ; Fri, 28 May 2021 13:26:27 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id v8so7037264lft.8 for ; Fri, 28 May 2021 13:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uCly6lMG0kzW4R5BHWVku0EV4SlEDlhFqYn8kAXDDic=; b=nkDkfoKm4Ip98GgG/YDsguk7x6CTtD91FtbETv4S1fC5OPFPtw+267HtBNHgDHATzq 8ntkQHwMPOPDPiQApFDJKdUXUlFViBoMXbdHPiUhWvopGhOVngnzZ1z0RFMDgGsUa74B E8OeSdP3tckOHRwm1D9WO1osQ+PR1dNvpPT+LsSDYThT261lZrF1v66kz/6GMvNjP9oV z5Inr0P9zKSLA5ZLIUFhbeZ+4q+E/petSq3Da2CxDQiuj/mQkyDFjE7czIHbpWDSshJu Z2HBTigJEXUZc+GqgQHmhzQ8Hzs31M0cdYWW8iEAui+Db/t3zSTlaYs4XR1ZSz9VyNLm F3Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uCly6lMG0kzW4R5BHWVku0EV4SlEDlhFqYn8kAXDDic=; b=h3MIsSSNGhtA+M0nJV+NuXatCNPbhdRDTbuPomvaESErsOORMt0814dNjnOo5pKkH4 WzuThbVTBvS7UWzsQ8tHDpChTZ7o3JnwxM23OwmsCKizPaEqH8lolgkp2Y2oYPgkcKiQ VUuC1+Sx5d4hmjwXB4vXhIfI0aliQI4nhSEDJWxAwsZ5bM3IRB2CZQb2YrxNEPGWFwRL SdEcNrpZk9mQsUSv4pY90XvL11leAsky6rLHb7fRa7lFZ+1MgZWQmJyGkEPBQLEwYhTm WCHKL4c3xx4QhwcY2V+exOufBExZgs86BEpboHrRyshlK72reGE6DBpgGZEt+LqOooKb GXqw== X-Gm-Message-State: AOAM530hwGCrIYA0vDH17Pcc4W+vXz9wPI6hTG307aC8Rs/sJnGytG7+ XqCcCXqDMC5VvLX9kST4hb9w5Q== X-Received: by 2002:a05:6512:3b93:: with SMTP id g19mr7091745lfv.548.1622233585884; Fri, 28 May 2021 13:26:25 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id q184sm709908ljb.54.2021.05.28.13.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 13:26:25 -0700 (PDT) From: Linus Walleij To: Pavel Machek Cc: linux-leds@vger.kernel.org, Linus Walleij , Jacek Anaszewski Subject: [PATCH 3/6] leds: max77693: Move driver to flash subdirectory Date: Fri, 28 May 2021 22:24:01 +0200 Message-Id: <20210528202404.431859-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210528202404.431859-1-linus.walleij@linaro.org> References: <20210528202404.431859-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org We created a subdirectory for LED drivers that depend on CONFIG_LEDS_CLASS_FLASH, and this driver does so let's move it there. Cc: Jacek Anaszewski Signed-off-by: Linus Walleij --- drivers/leds/Kconfig | 11 ----------- drivers/leds/Makefile | 1 - drivers/leds/flash/Kconfig | 10 ++++++++++ drivers/leds/flash/Makefile | 1 + drivers/leds/{ => flash}/leds-max77693.c | 0 5 files changed, 11 insertions(+), 12 deletions(-) rename drivers/leds/{ => flash}/leds-max77693.c (100%) -- 2.31.1 diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index cfa6b8194b6b..723de0d30039 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -680,17 +680,6 @@ config LEDS_MAX77650 help LEDs driver for MAX77650 family of PMICs from Maxim Integrated. -config LEDS_MAX77693 - tristate "LED support for MAX77693 Flash" - depends on LEDS_CLASS_FLASH - depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS - depends on MFD_MAX77693 - depends on OF - help - This option enables support for the flash part of the MAX77693 - multifunction device. It has build in control for two leds in flash - and torch mode. - config LEDS_MAX8997 tristate "LED support for MAX8997 PMIC" depends on LEDS_CLASS && MFD_MAX8997 diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile index a3a6fda8ab99..6f4aa0e6e355 100644 --- a/drivers/leds/Makefile +++ b/drivers/leds/Makefile @@ -58,7 +58,6 @@ obj-$(CONFIG_LEDS_LP8788) += leds-lp8788.o obj-$(CONFIG_LEDS_LP8860) += leds-lp8860.o obj-$(CONFIG_LEDS_LT3593) += leds-lt3593.o obj-$(CONFIG_LEDS_MAX77650) += leds-max77650.o -obj-$(CONFIG_LEDS_MAX77693) += leds-max77693.o obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o obj-$(CONFIG_LEDS_MC13783) += leds-mc13783.o obj-$(CONFIG_LEDS_MENF21BMC) += leds-menf21bmc.o diff --git a/drivers/leds/flash/Kconfig b/drivers/leds/flash/Kconfig index 1126ad3954b6..6401af23947f 100644 --- a/drivers/leds/flash/Kconfig +++ b/drivers/leds/flash/Kconfig @@ -20,6 +20,16 @@ config LEDS_AS3645A controller. V4L2 flash API is provided as well if CONFIG_V4L2_FLASH_API is enabled. +config LEDS_MAX77693 + tristate "LED support for MAX77693 Flash" + depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS + depends on MFD_MAX77693 + depends on OF + help + This option enables support for the flash part of the MAX77693 + multifunction device. It has build in control for two leds in flash + and torch mode. + config LEDS_RT4505 tristate "LED support for RT4505 flashlight controller" depends on I2C && OF diff --git a/drivers/leds/flash/Makefile b/drivers/leds/flash/Makefile index 9bb2fccee047..c2a5e530261d 100644 --- a/drivers/leds/flash/Makefile +++ b/drivers/leds/flash/Makefile @@ -2,5 +2,6 @@ obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o +obj-$(CONFIG_LEDS_MAX77693) += leds-max77693.o obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o diff --git a/drivers/leds/leds-max77693.c b/drivers/leds/flash/leds-max77693.c similarity index 100% rename from drivers/leds/leds-max77693.c rename to drivers/leds/flash/leds-max77693.c From patchwork Fri May 28 20:24:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 449515 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp682474jac; Fri, 28 May 2021 13:26:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1gh4ZdduiUb7QBJSik14dueNQIN10PNMKrsO7lzm0zkAoQApUMEw2vB0kgMm++zF4o3Bs X-Received: by 2002:aa7:c91a:: with SMTP id b26mr11961107edt.350.1622233590221; Fri, 28 May 2021 13:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622233590; cv=none; d=google.com; s=arc-20160816; b=VD9g9ZQDdpyUtf58yOJMwJbmYU7buEvyQhzzo6ASWhzsZkQIrG6lPDvucZt6v8lhrD Vl9yzN+CuxGDjJZ3oIrONa7VJ0JIN0XKJIWzZYPABbmAawvUFo/NL4BL+5KjRg6O10EV yWxrpVdUNeO8DJjHl1Hx+m6kZTNSxbdcc5GpeyBHcg8uUg+Y+fktKOWscoW6GX+dY4zJ sAdsievJc65oCXgfZUwTomyxzTVJ91/M26zVRwvzNbcRBA/AeTE8CQkR/BQbXa79bzqZ 3WDx4FG6QWlMEvn1RNag6PHIGm8PYF2aFo4igV9LauuWjnS6VxH088pptCRm/0abXw9O M7fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LxWC3vqRK4riX3AOu3PMRZSJjS9JAOvjJvGx0mZ+krs=; b=aRQUdV2tI7kaxh/KMH9x2hpXAbf+aONft3i8/pnHaOMq9DCzYXQdS/nCYAs2ufuXoN UqXbCMhgulfaN/wswILvN7zQ3SAtB7FgKQ2gal2+KtEONlChPh9SuTk6gvTH2YmZCwya Xt4v+MnpMubU3lyTedfczLNntQAOsFyORx1/zrL1GpTllwk1UqCqw4j2yOzggPuVXhdo Kru0Q+A3ycsN4Z00WSonWdNuuvGxEB9iOv58xf6UC9dh4wdBK25y0a5sMX0348tRn2Pb uZSa9PMyj+/STYZaubKccvTA//7BjRpOfLqmiuQqt6B2hfGc7iB10rXrqjuhmnQkQq7L QM2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=om2Z93Ay; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si5747897edx.557.2021.05.28.13.26.30 for ; Fri, 28 May 2021 13:26:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=om2Z93Ay; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229612AbhE1U2E (ORCPT ); Fri, 28 May 2021 16:28:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbhE1U2E (ORCPT ); Fri, 28 May 2021 16:28:04 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 016D3C061574 for ; Fri, 28 May 2021 13:26:29 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id v8so7037327lft.8 for ; Fri, 28 May 2021 13:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LxWC3vqRK4riX3AOu3PMRZSJjS9JAOvjJvGx0mZ+krs=; b=om2Z93AyPtbwA1PZ5zKN11E8qtx9VylIlH0mhFxeTo0uyUSAyAXiNSXvokiW8WblMY EQtd9rKVT4jKKTGMi15vk2IGMNu+S/VAasYCSvV0+e3zBcihqyiXn4NW/3nBj5q8WdFZ ZFa5GkMXTNOqtykoErbFvvbLIlSgXNQ11jow6CjNlRVFXt7GsrW41X5gX7llXhr14X7m UFJ3uPFk67c7T0HEegmPSwHrEe/f9JSuxweyC6rdJv1BwmLCS1XD4fxh283jC6qooJnn EdJKzCofeJ53fIeC2j5uduwqB4FLONx+wBHY4ABagEA9DUdzIZstmBlp/SNUkywb8wXj th5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LxWC3vqRK4riX3AOu3PMRZSJjS9JAOvjJvGx0mZ+krs=; b=pG0m1VZSLiBVxElyctdi0ffXqIPwuage10XNOZ6ga4iuolTzF4rSKdu5CcoDJLxw7Y pMZi6yjRJoGN3xZu2I0KMlTf0foFUw6vUlA85C2ucAghiBLhO9ktDHxyz+qBype+SViK TUbsiIZQFwKaQ9EhGo1Wb5q2CC4GqtcqXTZSQOvveuHe+cvE7vLUqRjps5OJj87sLhya hb9n9Z7duRcRR+OtA2bBOkKENY7QKdbPcoPNA206Mr39oM7qdooBY+rz8tSMFCzKnNzn IKrajfdCn4ZvYKLClXXE1xIRlwvCucRRC2UMyDmyH3k39yXVde6gxBRORJUKwnTWk1WL 4Sog== X-Gm-Message-State: AOAM5304n+fzrvv4idez8kuzyQwgtq369J6oQ/OFG6woVyCQ06behsZ3 23PpZEZgzDDh9d3SGZnnWlNdVQ== X-Received: by 2002:a19:9104:: with SMTP id t4mr6716699lfd.43.1622233587324; Fri, 28 May 2021 13:26:27 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id q184sm709908ljb.54.2021.05.28.13.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 13:26:27 -0700 (PDT) From: Linus Walleij To: Pavel Machek Cc: linux-leds@vger.kernel.org, Linus Walleij , Luca Weiss Subject: [PATCH 4/6] leds: sgm3140: Move driver to flash subdirectory Date: Fri, 28 May 2021 22:24:02 +0200 Message-Id: <20210528202404.431859-4-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210528202404.431859-1-linus.walleij@linaro.org> References: <20210528202404.431859-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org We created a subdirectory for LED drivers that depend on CONFIG_LEDS_CLASS_FLASH, and this driver does so let's move it there. Cc: Luca Weiss Signed-off-by: Linus Walleij --- drivers/leds/Kconfig | 8 -------- drivers/leds/Makefile | 1 - drivers/leds/flash/Kconfig | 7 +++++++ drivers/leds/flash/Makefile | 1 + drivers/leds/{ => flash}/leds-sgm3140.c | 0 5 files changed, 8 insertions(+), 9 deletions(-) rename drivers/leds/{ => flash}/leds-sgm3140.c (100%) -- 2.31.1 diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 723de0d30039..171ccfd4de1b 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -883,14 +883,6 @@ config LEDS_IP30 To compile this driver as a module, choose M here: the module will be called leds-ip30. -config LEDS_SGM3140 - tristate "LED support for the SGM3140" - depends on LEDS_CLASS_FLASH - depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS - help - This option enables support for the SGM3140 500mA Buck/Boost Charge - Pump LED Driver. - config LEDS_ACER_A500 tristate "Power button LED support for Acer Iconia Tab A500" depends on LEDS_CLASS && MFD_ACER_A500_EC diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile index 6f4aa0e6e355..5e804f72b8e5 100644 --- a/drivers/leds/Makefile +++ b/drivers/leds/Makefile @@ -79,7 +79,6 @@ obj-$(CONFIG_LEDS_PWM) += leds-pwm.o obj-$(CONFIG_LEDS_REGULATOR) += leds-regulator.o obj-$(CONFIG_LEDS_S3C24XX) += leds-s3c24xx.o obj-$(CONFIG_LEDS_SC27XX_BLTC) += leds-sc27xx-bltc.o -obj-$(CONFIG_LEDS_SGM3140) += leds-sgm3140.o obj-$(CONFIG_LEDS_SUNFIRE) += leds-sunfire.o obj-$(CONFIG_LEDS_SYSCON) += leds-syscon.o obj-$(CONFIG_LEDS_TCA6507) += leds-tca6507.o diff --git a/drivers/leds/flash/Kconfig b/drivers/leds/flash/Kconfig index 6401af23947f..788d698587a7 100644 --- a/drivers/leds/flash/Kconfig +++ b/drivers/leds/flash/Kconfig @@ -52,4 +52,11 @@ config LEDS_RT8515 To compile this driver as a module, choose M here: the module will be called leds-rt8515. +config LEDS_SGM3140 + tristate "LED support for the SGM3140" + depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS + help + This option enables support for the SGM3140 500mA Buck/Boost Charge + Pump LED Driver. + endif # LEDS_CLASS_FLASH diff --git a/drivers/leds/flash/Makefile b/drivers/leds/flash/Makefile index c2a5e530261d..2f9153e78717 100644 --- a/drivers/leds/flash/Makefile +++ b/drivers/leds/flash/Makefile @@ -5,3 +5,4 @@ obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o obj-$(CONFIG_LEDS_MAX77693) += leds-max77693.o obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o +obj-$(CONFIG_LEDS_SGM3140) += leds-sgm3140.o diff --git a/drivers/leds/leds-sgm3140.c b/drivers/leds/flash/leds-sgm3140.c similarity index 100% rename from drivers/leds/leds-sgm3140.c rename to drivers/leds/flash/leds-sgm3140.c From patchwork Fri May 28 20:24:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 449516 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp682522jac; Fri, 28 May 2021 13:26:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhDtOhTJfDx82T0H5+K5L4RQuxfz1hbGB8JcJnSjDkolG6ZY5a2Z0JaJ2QvOizg/W1Tkgo X-Received: by 2002:a17:906:a017:: with SMTP id p23mr10990676ejy.460.1622233595045; Fri, 28 May 2021 13:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622233595; cv=none; d=google.com; s=arc-20160816; b=ApX1lhNUwPcFfmdad/BRC1yB5eIYQCbkwWiysa/7n91ytz6v4IbM0sQ+n4al3R8osD C87q29jPNgBDM2LHLuec17mG957Xk5CrP2n5CGyMdgJKbVv2KvIc9J1nWSqoNCg6ST81 otC/N948lYuXByRYpatmku2e6o7jRZaasE1O5tRH3+iAW9DUmYQhljUqmBZwWAyozL7d PibKDxZOFyUgCm2WQBBkMNuRz9OP806GWL/dZiP5aW4IUQ/y2SS7k1yKgfEYodbrOKKn JrvNaxQPT1rEL4fSJMp3DQAvZ4RnTsWCEMdg+f4OQo2t2AzSlR/B6B12b0Vge/EH2ql/ A5QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qbYTPH0dXLJe60KT6GUwl9z9aucwOkzrzW5kGt6lPOY=; b=XtFjuH7UXFH8igrmvYjsgobTogqA+hLDMTCUCrOA7a9ZDUNjYioMDSf2sW6WYqRXQS 6SPbgKOzMsio/hmJ83Lm/s7uZbfEVBwdNszrpjaZRXk22ZQy3tg58J5nfSIC6+qxZlGe MVTUSl2ohzq8htQaTqPlYaGiz/otj77URPlQBq8/Vmjp9V0zRINxz0QaG0D5OaRmXiTv e9XYJgzjVKkietv5Dokrz/mArpvgO36Ex8mzx/c7ZISXDvetIfjuQq4aZgJqjLughRvV yBOmTiFaINVD+djxuSZn70k57eQzg30YVuMz5mT8WqfPbSrJgKMqUKQoI+UclBuB4Bc/ hJJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T9zLAP0V; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si5747897edx.557.2021.05.28.13.26.34 for ; Fri, 28 May 2021 13:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T9zLAP0V; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbhE1U2J (ORCPT ); Fri, 28 May 2021 16:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbhE1U2G (ORCPT ); Fri, 28 May 2021 16:28:06 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35252C061574 for ; Fri, 28 May 2021 13:26:30 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id a2so7026203lfc.9 for ; Fri, 28 May 2021 13:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qbYTPH0dXLJe60KT6GUwl9z9aucwOkzrzW5kGt6lPOY=; b=T9zLAP0VBe5iKeVBBPfF9eIkBX/X4JVjxoFrty6yo+/0RMd3d4rIXYWq2Gzx9wuthq scCh78XTw5jja3T5niUWUdSqhHzpQ0jgqfwNt61lNH5iL0Ajm5hoJz0LkvuklrqUPKSW Ob5xFnZge1QIGtye2Zm1k3Lg58WXk7GiO0Frjmd2qsz4HiAQ3GyyBPWqywdK+n6VHtZU 6wamYcL0w6PGKSnKi0F1w4M+7DL8Kz6N1THl/Rle3kzxUuTYvUrx1pSY1uuHzkWqAdcR +eL8QDWNkPCZlMqU35SodUBNA9pZFenidHGj1m/0qhwTpUrNWhgm8vTB0VdyJ93+XWDT J1/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qbYTPH0dXLJe60KT6GUwl9z9aucwOkzrzW5kGt6lPOY=; b=r33+qMzXiFnQhmocUNgq3ezwzbATVWtqjUh7wSsUTmvZEG0NjuvXmeQTGdvT9mDMgI q4h0VU0jLHkJE6A5FYlo9SwONt0d81Q2dowAXgyvnpn5y2Px6DqQhmelRrC3D9XP9LS4 hfpxTh5iwM0G7vHf10Gb5LKkUom7nzWcjqpFQHm/1FNw6cJ5H2q5uscjIduOPmMQd2zP lPhwaNU+zn5R3UTtipjPGAP65LWXGMje8q7aCO1gzDLE8IrxD9+0399YOQwTSBEqs/9M cmCz2ZrRX8zzOqMpobByUnNtae2HU2vOgWEmN+gYG7pNE7u8sBNB4m+B3SmoDwCNyfhs eQQQ== X-Gm-Message-State: AOAM531SBj78sxKOivApKsopze0Zs30egkGnNTpZY8GGuX799QtadNW3 Ya628I0zpmprP0dtuyh9qEkd0g== X-Received: by 2002:a05:6512:3da8:: with SMTP id k40mr6939036lfv.450.1622233588557; Fri, 28 May 2021 13:26:28 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id q184sm709908ljb.54.2021.05.28.13.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 13:26:28 -0700 (PDT) From: Linus Walleij To: Pavel Machek Cc: linux-leds@vger.kernel.org, Linus Walleij , Dan Murphy Subject: [PATCH 5/6] leds: lm3601x: Move driver to flash subdirectory Date: Fri, 28 May 2021 22:24:03 +0200 Message-Id: <20210528202404.431859-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210528202404.431859-1-linus.walleij@linaro.org> References: <20210528202404.431859-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org We created a subdirectory for LED drivers that depend on CONFIG_LEDS_CLASS_FLASH, and this driver does so let's move it there. Cc: Dan Murphy Signed-off-by: Linus Walleij --- drivers/leds/Kconfig | 9 --------- drivers/leds/Makefile | 1 - drivers/leds/flash/Kconfig | 8 ++++++++ drivers/leds/flash/Makefile | 1 + drivers/leds/{ => flash}/leds-lm3601x.c | 0 5 files changed, 9 insertions(+), 10 deletions(-) rename drivers/leds/{ => flash}/leds-lm3601x.c (100%) -- 2.31.1 diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 171ccfd4de1b..1671aa2f90b5 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -220,15 +220,6 @@ config LEDS_LM3692X This option enables support for the TI LM3692x family of white LED string drivers used for backlighting. -config LEDS_LM3601X - tristate "LED support for LM3601x Chips" - depends on LEDS_CLASS && I2C - depends on LEDS_CLASS_FLASH - select REGMAP_I2C - help - This option enables support for the TI LM3601x family - of flash, torch and indicator classes. - config LEDS_LOCOMO tristate "LED Support for Locomo device" depends on LEDS_CLASS diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile index 5e804f72b8e5..6d5c23afaf98 100644 --- a/drivers/leds/Makefile +++ b/drivers/leds/Makefile @@ -40,7 +40,6 @@ obj-$(CONFIG_LEDS_LM3530) += leds-lm3530.o obj-$(CONFIG_LEDS_LM3532) += leds-lm3532.o obj-$(CONFIG_LEDS_LM3533) += leds-lm3533.o obj-$(CONFIG_LEDS_LM355x) += leds-lm355x.o -obj-$(CONFIG_LEDS_LM3601X) += leds-lm3601x.o obj-$(CONFIG_LEDS_LM36274) += leds-lm36274.o obj-$(CONFIG_LEDS_LM3642) += leds-lm3642.o obj-$(CONFIG_LEDS_LM3692X) += leds-lm3692x.o diff --git a/drivers/leds/flash/Kconfig b/drivers/leds/flash/Kconfig index 788d698587a7..6cb6600555f0 100644 --- a/drivers/leds/flash/Kconfig +++ b/drivers/leds/flash/Kconfig @@ -20,6 +20,14 @@ config LEDS_AS3645A controller. V4L2 flash API is provided as well if CONFIG_V4L2_FLASH_API is enabled. +config LEDS_LM3601X + tristate "LED support for LM3601x Chips" + depends on LEDS_CLASS && I2C + select REGMAP_I2C + help + This option enables support for the TI LM3601x family + of flash, torch and indicator classes. + config LEDS_MAX77693 tristate "LED support for MAX77693 Flash" depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS diff --git a/drivers/leds/flash/Makefile b/drivers/leds/flash/Makefile index 2f9153e78717..67556329441e 100644 --- a/drivers/leds/flash/Makefile +++ b/drivers/leds/flash/Makefile @@ -2,6 +2,7 @@ obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o +obj-$(CONFIG_LEDS_LM3601X) += leds-lm3601x.o obj-$(CONFIG_LEDS_MAX77693) += leds-max77693.o obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o diff --git a/drivers/leds/leds-lm3601x.c b/drivers/leds/flash/leds-lm3601x.c similarity index 100% rename from drivers/leds/leds-lm3601x.c rename to drivers/leds/flash/leds-lm3601x.c From patchwork Fri May 28 20:24:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 449517 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp682527jac; Fri, 28 May 2021 13:26:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztNxzWt0yGBwQI5yJW8Egz5UFY9FDOCQwR074KpICIRaZkSwbUiTx615jRLlhFpKKanr1O X-Received: by 2002:a50:f689:: with SMTP id d9mr11887774edn.197.1622233595379; Fri, 28 May 2021 13:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622233595; cv=none; d=google.com; s=arc-20160816; b=Waw55B+uBv6WshTLAQcOIgw+D2zXq6nJPYTuyzRjwh8usWbpbEsN5kn7FAbPp9aVqD XLouYafPVa9uhjLk4vAQIXD1PgwMocIR2K/P/5kldGPT48gEXI5v4ynaZDh14eUB3Wk4 eeT4uEN1rZogHK3Z0OtEQ+hahaQJF6yP/yysGzRwOzQ8csOtZzgTwTISks5ZkJsnmYmT sDu35585syH5BzBIdb3mojkfZ1/KIwlbTovIhYJWt8thXKM63KnQlMDvUoXw2KXrODKq elYhBw1WnL5sU2zhFwiYXGq24F7165JU8mIFDn8YQUPiGSxpAubfA37FDocSn2kTbFN8 IulA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2nvFIf9K+8bSqa+V/uXhIo4b03jKOmYhREmjOr7Bhug=; b=TWPtAf18BXIsYbid+zhFHUzx72QI2Z8M3SuMUp0o4KNfEGj7hJ+mJCaVq930HtHXTu wVu7JPPaRc6G8brXDW/r7O3ul6JWZyHkiDO2m64z3FjUg1AI4kOAx/snPcIX65uKOM2v Uhxb7/pnrEqFbNRVca4rOdIeOhu5bQwLvEvKDvqLtTVXPCC8USQ+Wcp5+8QPGcXM+8HF RzMGW1OgLmU4D5KkqKFxz1ZEhNEvXbEz8FUftNXGS2Y3VJ6tSyJmEbepHsaPm/MsvytT HGolJGUi6GRZg/D24+6/Nuf5UrVN8sGZoKJ4HBy9VtK7nMspcf9hjw1urw8qIS6IbwWe ClQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rsg8diga; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si5747897edx.557.2021.05.28.13.26.35 for ; Fri, 28 May 2021 13:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rsg8diga; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbhE1U2J (ORCPT ); Fri, 28 May 2021 16:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbhE1U2H (ORCPT ); Fri, 28 May 2021 16:28:07 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4367C06174A for ; Fri, 28 May 2021 13:26:31 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id e17so7087520lfb.2 for ; Fri, 28 May 2021 13:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2nvFIf9K+8bSqa+V/uXhIo4b03jKOmYhREmjOr7Bhug=; b=rsg8diga6/YM9VHRxOZ73FFsbYuIo8s7sDA6tups25GS0BeTQtiiWvAV6rDVQc2jH0 C9TPfXd6r6eVkNyuW92shbePESMNTBRXem/2BAxAn/fx7K+fJIhB4SycAkuAEdeNGv8e Xtaj61/vrGkWpX7c9IOFfbLqorXRRwHz1/2xpsytUSE6UoEXn0V+ggXdrI90nrGRa5t3 VZaeOQVj9KeLLpQp1pVwcg3cUpwhzz/p7Mx06o0m213ykM3N9ahrCVsnBWXLnRmBn6j0 lATr6mfVfy1vy1yqCEMtlFoe7cYrFGVemjSztJ7n9OIWriLh7eiGdfaoos0F4zAwiPW1 RGhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2nvFIf9K+8bSqa+V/uXhIo4b03jKOmYhREmjOr7Bhug=; b=r5I4t73HLAfJNwaUIQ8CFXNBylb5j2Kv82Eok69gg5dVD076uvJIajMtovqo3kvpTq aR+n97CsOPBIRd3dakF4UHKq8oST9S3fBr+iPQs6ri5KMV9YjYQc0j9YneYsh9VC89+B kDLctgkppx/IBI+TJst6v2S2o8t2DHkrwcihxfcNavh1gH3WeDQUEo5xKXvQfigBt15p LrAs/jboHbzycKzhVPlaM6VXuUZyJDLF57mJfk0tY7xqjwOZM4ohj87dBG9ptoxUWaAC OxE4I1zmQAHbTlPmwW5jKhlxDzJIbZdtKIK7e8NFm/ier8zRWaeqk/5wo1tzSaYCSGJR EOOQ== X-Gm-Message-State: AOAM531hdmDrpTJl5O4Vl9nE2IrIC/VfHiTEJjuby1cQAjcJHOfOLNTr 85Ecgl5hkIKVas5W4AJ9MtVx/g== X-Received: by 2002:a05:6512:1288:: with SMTP id u8mr6960261lfs.657.1622233590019; Fri, 28 May 2021 13:26:30 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id q184sm709908ljb.54.2021.05.28.13.26.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 13:26:29 -0700 (PDT) From: Linus Walleij To: Pavel Machek Cc: linux-leds@vger.kernel.org, Linus Walleij , Ingi Kim Subject: [PATCH 6/6] leds: ktd2692: Move driver to flash subdirectory Date: Fri, 28 May 2021 22:24:04 +0200 Message-Id: <20210528202404.431859-6-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210528202404.431859-1-linus.walleij@linaro.org> References: <20210528202404.431859-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org We created a subdirectory for LED drivers that depend on CONFIG_LEDS_CLASS_FLASH, and this driver does so let's move it there. Cc: Ingi Kim Signed-off-by: Linus Walleij --- drivers/leds/Kconfig | 10 ---------- drivers/leds/Makefile | 1 - drivers/leds/flash/Kconfig | 10 ++++++++++ drivers/leds/flash/Makefile | 1 + drivers/leds/{ => flash}/leds-ktd2692.c | 0 5 files changed, 11 insertions(+), 11 deletions(-) rename drivers/leds/{ => flash}/leds-ktd2692.c (100%) -- 2.31.1 diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 1671aa2f90b5..da7773dc8670 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -702,16 +702,6 @@ config LEDS_MENF21BMC This driver can also be built as a module. If so the module will be called leds-menf21bmc. -config LEDS_KTD2692 - tristate "LED support for KTD2692 flash LED controller" - depends on LEDS_CLASS_FLASH && OF - depends on GPIOLIB || COMPILE_TEST - help - This option enables support for KTD2692 LED flash connected - through ExpressWire interface. - - Say Y to enable this driver. - config LEDS_IS31FL319X tristate "LED Support for ISSI IS31FL319x I2C LED controller family" depends on LEDS_CLASS && I2C && OF diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile index 6d5c23afaf98..c636ec069612 100644 --- a/drivers/leds/Makefile +++ b/drivers/leds/Makefile @@ -35,7 +35,6 @@ obj-$(CONFIG_LEDS_IP30) += leds-ip30.o obj-$(CONFIG_LEDS_IPAQ_MICRO) += leds-ipaq-micro.o obj-$(CONFIG_LEDS_IS31FL319X) += leds-is31fl319x.o obj-$(CONFIG_LEDS_IS31FL32XX) += leds-is31fl32xx.o -obj-$(CONFIG_LEDS_KTD2692) += leds-ktd2692.o obj-$(CONFIG_LEDS_LM3530) += leds-lm3530.o obj-$(CONFIG_LEDS_LM3532) += leds-lm3532.o obj-$(CONFIG_LEDS_LM3533) += leds-lm3533.o diff --git a/drivers/leds/flash/Kconfig b/drivers/leds/flash/Kconfig index 6cb6600555f0..b230f3d65eb0 100644 --- a/drivers/leds/flash/Kconfig +++ b/drivers/leds/flash/Kconfig @@ -20,6 +20,16 @@ config LEDS_AS3645A controller. V4L2 flash API is provided as well if CONFIG_V4L2_FLASH_API is enabled. +config LEDS_KTD2692 + tristate "LED support for Kinetic KTD2692 flash LED controller" + depends on OF + depends on GPIOLIB || COMPILE_TEST + help + This option enables support for Kinetic KTD2692 LED flash connected + through ExpressWire interface. + + Say Y to enable this driver. + config LEDS_LM3601X tristate "LED support for LM3601x Chips" depends on LEDS_CLASS && I2C diff --git a/drivers/leds/flash/Makefile b/drivers/leds/flash/Makefile index 67556329441e..ebea42f9c37e 100644 --- a/drivers/leds/flash/Makefile +++ b/drivers/leds/flash/Makefile @@ -2,6 +2,7 @@ obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o +obj-$(CONFIG_LEDS_KTD2692) += leds-ktd2692.o obj-$(CONFIG_LEDS_LM3601X) += leds-lm3601x.o obj-$(CONFIG_LEDS_MAX77693) += leds-max77693.o obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o diff --git a/drivers/leds/leds-ktd2692.c b/drivers/leds/flash/leds-ktd2692.c similarity index 100% rename from drivers/leds/leds-ktd2692.c rename to drivers/leds/flash/leds-ktd2692.c