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