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