Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp465105pxf; Thu, 11 Mar 2021 07:43:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRtOYoEHrNermg8ow8HTYHrjelOMYHOoh04u4U5lkst5G5UukU7E6r/nrYWJ9Z984vMHDX X-Received: by 2002:a17:907:3f26:: with SMTP id hq38mr3740436ejc.374.1615477398218; Thu, 11 Mar 2021 07:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615477398; cv=none; d=google.com; s=arc-20160816; b=PUKytrKF5DLO1+bQSsqZJTunUO9Ja4rYjxmeCfgNwZk0wNo+1n1nR+vf9CRQZV8BYS hsUfUAC/Tyx+IzjChZTSga2gKe0M9GPaXdGN7LCSDVBTRK4aeqJU8EvZ3xvLk9GBdsS5 vp5B9K6SnGpqS3fbXKdEiyPRNTeJ99I6CLQpZyEloabbYmKpQ0hBG7SXC866pmj+Pj4X ZDo/XClv1RoHFVe+oqZDMGD+N+HHd9Avu8ihV2Dx8ghybzffI2lJ5rR+JzGDq02RX61h 1LGCWMS07U33LbPYci3Ghz0jg7NLM3QOcS299myXLY50L5c84SWf+08GOn3CYa/+SLVO LlYA== 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:subject:cc:to:from:date; bh=S2Jv9Bzu32Xuv8e4N6uuJ2Ox0ZaEvt0A/9caac38a5c=; b=LWAyu/wdmwEvIZt/6YqozFztxSeStqbu5PKJRfvEMurVX3XO71Q0wUa9m7WIszt/TC n8Qj8IQ6zLm44Zdv8pg7oIGdnzKYyMdPzCayddK2pdOqBWyE9NO8yV+kFRxm11hoF0et aqPzLYLbQXQLEWMSRUkMt68G30vDKafxt+d4IFTwVQNle7+siop5Fp/yaZzE+dhvD4/n fAEk4Fp8pG6+Jp9JIJ9vS5cJoMClAZiiIu7BsFXc/fjStdCHxw9tmM+6Xs4+7m1Q2ByW 1sC2VKo/WjHp+yGvfjsTFOqrb6f7sostFyHFm25vpcuJ0AzYj0D26060hCq4sVKM8uIh TRBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si1954465edv.353.2021.03.11.07.42.55; Thu, 11 Mar 2021 07:43:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234234AbhCKPkS (ORCPT + 99 others); Thu, 11 Mar 2021 10:40:18 -0500 Received: from lists.nic.cz ([217.31.204.67]:53062 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234223AbhCKPjy (ORCPT ); Thu, 11 Mar 2021 10:39:54 -0500 Received: from localhost (unknown [IPv6:2a0e:b107:ae1:0:3e97:eff:fe61:c680]) by mail.nic.cz (Postfix) with ESMTPSA id 56C061408BD; Thu, 11 Mar 2021 16:39:51 +0100 (CET) Date: Thu, 11 Mar 2021 16:39:51 +0100 From: Marek Behun To: Hermes Zhang Cc: Pavel Machek , Dan Murphy , , Hermes Zhang , , Subject: Re: [PATCH] leds: leds-dual-gpio: Add dual GPIO LEDs driver Message-ID: <20210311163951.0046fb5c@nic.cz> In-Reply-To: <20210311163814.74c1885f@nic.cz> References: <20210311130408.10820-1-chenhui.zhang@axis.com> <20210311163814.74c1885f@nic.cz> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-100.0 required=5.9 tests=SHORTCIRCUIT, USER_IN_WELCOMELIST,USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Mar 2021 16:38:14 +0100 Marek Behun wrote: > LED_FULL, LED_HALF, LED_OFF are deprecated. > > And this driver is redundant. This can be done with leds-regulator, > with a gpio-regulator. > > Marek Sorry, leds-regulator has only a binary state LED. Maybe you could extend leds-regulator to be able to use all regulator states? Or you can extend leds-gpio driver to support N states via log N gpios, instead of adding new driver. Marek