From patchwork Mon May 4 10:26:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Eckert X-Patchwork-Id: 1282400 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dev.tdt.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=kUXYJJWY; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49FzYk5j5hz9sSc for ; Mon, 4 May 2020 20:27:05 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dxlwmpqr8xSe4SbmQmjcIehAukGwRSpXZ3FQTDwYJNw=; b=kUXYJJWYJ1iTJz hb1QN/S7fqXsPG5scqZiH2Uwh/lJuY4+VyoPmGQxCF0BZjFt0ZmfnkPb6cpQKMLZa35a1SSbprUzN Ho4z/nB/iTUGhPdGB1i8+e4Tu3FgYBqbCR3Aj1FW7sE8TWrPleyAN6tJ0ArY5Rba3swszjmp4BZ8f IP/UlBHv3AeLLZew/4kek+Lfcx5b1oEhTU0huPM/TTsCJBP33zoCBbO9JGPk1t20pVeSdZC8akXUh fIpZKSjJALaI7ivkIn+zQCVGy7I/ZIWObqJVuUDXfW3jbTNPZVcrzZoIIHjdDKDA/bYDubhgvipkp LUXsySCNOUIe/6T9AS1w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVYJS-0004Ri-T9; Mon, 04 May 2020 10:27:02 +0000 Received: from host-88-217-225-28.customer.m-online.net ([88.217.225.28] helo=mail.dev.tdt.de) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVYJO-0004ER-Hh for openwrt-devel@lists.openwrt.org; Mon, 04 May 2020 10:27:00 +0000 Received: from feckert.dev.tdt.de (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 22D2720B52; Mon, 4 May 2020 10:26:41 +0000 (UTC) From: Florian Eckert To: Eckert.Florian@googlemail.com, john@phrozen.org Date: Mon, 4 May 2020 12:26:29 +0200 Message-Id: <20200504102629.18746-1-fe@dev.tdt.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200504_032658_747126_A2F19CD1 X-CRM114-Status: UNSURE ( 5.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS Subject: [OpenWrt-Devel] [PATCH] kernel: add kmod-ledtrig-mtd as a kernel module X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openwrt-devel@lists.openwrt.org, Florian Eckert Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Not every target needs this LED trigger. Therefore this trigger can be installed as kernel module. Signed-off-by: Florian Eckert --- This is a followup patch form the discussion: https://patchwork.ozlabs.org/project/openwrt/patch/20181129132538.20179-3-fe@dev.tdt.de/#2043062 package/kernel/linux/modules/leds.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index 59ea6edbcd..fa9756ff39 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -131,6 +131,21 @@ endef $(eval $(call KernelPackage,ledtrig-oneshot)) +define KernelPackage/ledtrig-mtd + SUBMENU:=$(LEDS_MENU) + TITLE:=LED MTD (NAND/NOR) Trigger + KCONFIG:=CONFIG_LEDS_TRIGGER_MTD + FILES:=$(LED_TRIGGER_DIR)/ledtrig-mtd.ko + AUTOLOAD:=$(call AutoLoad,50,ledtrig-mtd) +endef + +define KernelPackage/ledtrig-mtd/description + Kernel module that allows LEDs to be controlled by MTD activity. +endef + +$(eval $(call KernelPackage,ledtrig-mtd)) + + define KernelPackage/leds-pca963x SUBMENU:=$(LEDS_MENU) TITLE:=PCA963x LED support