Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp205704pxa; Fri, 31 Jul 2020 09:52:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBT9BDEq60ZCKm02cZsqr4gn1ggGAgzFONHw8zLLJcWOU6GD7c4FSJXvJh7/VkQC6xgU8x X-Received: by 2002:a50:da44:: with SMTP id a4mr4840268edk.379.1596214320666; Fri, 31 Jul 2020 09:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596214320; cv=none; d=google.com; s=arc-20160816; b=B1ZvxCWzFGX5AqusEDVHl73tO7PXCQm8yJrGmTX2g/nDY9OCps6Iz7S1THT0hc8OhR mxOPmHRT/9u2wA4/obtLJ9AgSrxWFo94fVkeM6rIMxvkDJfo/CH30jN5KYWF7ydPw4ko bGLaq0pdyA8MvvchUiCpPJMRU1nHw3jeizpLrcQnctmlweN3wcvOxk32KFhanxpsicwK yfC2Wyr5lWb0lDtDJ+mVWQjcrcOQcXnQrLMpkYDk4vKwpyXZacFIra4kpU1k711bsS2P 4Bi5SrpqwOlvY3uHgbGO7XkvZVEIw0Rd/Lecp6sYC9KniranMyNGZte9FsLD3kYXfaTp uF8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:ironport-sdr:dkim-signature; bh=/yJmAC7MaR0X41+CBqIrzgd2VxEU9etJ3LZo/LtFjaM=; b=mNYWb8ElT70iLlHbVAPuEl5zuk9M/w8ITfnk2rLxtq+oO6fMP3b3QbIpCI7Z2pvpla GMgl6oOxCafUhKs1MvcoAPCQeTi9Hl1oMLmgrnd9jxn1a/SrzzNWFDjlOV7wIhhgihNW 6r+xuGwlFnqSZ7XCVIfHEUgqMFHPJc6bIdcT/SfOqROnQfI4XWLCAbm25XQee308RqKe 2W8B1nqO2HLtQmmBrVuEVftUXiEQviK5Joo4m4M1yd4xEfSbwxb72JXew9YwHxqEQPOT OUAMSHmot1d7pnvOM369QOibhttjxGVVFHHadslvpn7GJRKPeYMMPkOjdzGjQ9wB6KCY /DRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@diehl.com header.s=default header.b=DApR5PXf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox11si5133429ejb.727.2020.07.31.09.51.38; Fri, 31 Jul 2020 09:52:00 -0700 (PDT) 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; dkim=fail (test mode) header.i=@diehl.com header.s=default header.b=DApR5PXf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732912AbgGaQv1 (ORCPT + 99 others); Fri, 31 Jul 2020 12:51:27 -0400 Received: from enterprise01.smtp.diehl.com ([193.201.238.219]:47081 "EHLO enterprise01.smtp.diehl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731565AbgGaQvZ (ORCPT ); Fri, 31 Jul 2020 12:51:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=diehl.com; i=@diehl.com; q=dns/txt; s=default; t=1596214284; x=1627750284; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=/M/VdMoglksq9/Q9o63RpLEQxjFrpzvCcVVWvvdiT0s=; b=DApR5PXf7fHTGqxd/W7+lFcAVlVzatqen2+8cFmqhlJhk2rkUNwpkzzB ZjqJpTLNHYd7rP8PNV06a1+75cAkFqVYczWaUZjjEmRIvLUj8H427t/q0 Cl3IQgZR0j7XZUfiYA6vabr/mHvj692/51B0X374YYame3eLSQNhGyyGH g5rnmG5c+Py14Wz8O5vMQmBgqUzyumbjV9KEW5Jst2BUDbXMm1O5tpzTv m9QXuhB5BZ6gn5U+wreKV1tLJnONLMCU0aq2RSKffLsRRQMNDKrrleSnq uMsTZ60V07rhuZXMJhrkmNkB+j8dEvF9bgc5/42cLvPQ7aNKsusqrXIOH g==; IronPort-SDR: QTgIEfBu4Isb59dke7qGPt/ac+sqEBDBSCkEbBUbfWcCJg87vDUyXz+TAuZ51OD7zmDxqXBgkw QOULMALdFQoQ== X-IronPort-AV: E=Sophos;i="5.75,418,1589234400"; d="scan'208";a="40421618" From: Denis Osterland-Heim To: "dmurphy@ti.com" , "pavel@ucw.cz" , "jacek.anaszewski@gmail.com" CC: "linux-kernel@vger.kernel.org" , "linux-leds@vger.kernel.org" , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH v7 0/3] leds: pwm: add support for default-state device Thread-Topic: [PATCH v7 0/3] leds: pwm: add support for default-state device Thread-Index: AQHWZ1rRFxbKa90VkEqpICDUHdmLhQ== Date: Fri, 31 Jul 2020 16:51:20 +0000 Message-ID: <20200731164945.19515-1-Denis.Osterland@diehl.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.5-0ubuntu0.18.04.2 x-ms-exchange-messagesentrepresentingtype: 1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TrailerSkip: 1 X-GBS-PROC: PkB65aL1SqtESF35r/jQnxtgDjFz6f85lRVDwolbbm+V/0xjLOfaQZtnGblCB/P9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v6 -> v7: apply comments from Jacek refactore default state read to separate function and use it in leds-gpio and leds-pwm @Pavel I hope that it is okay to keep your acked-by on 2/3, the logic is the same but with switch, in favour of if .../devicetree/bindings/leds/leds-pwm.txt | 2 + drivers/leds/led-core.c | 15 +++++++ drivers/leds/leds-gpio.c | 12 +----- drivers/leds/leds-pwm.c | 49 ++++++++++++++++= +++--- drivers/leds/leds.h | 1 + include/linux/leds.h | 12 ++++-- 6 files changed, 72 insertions(+), 19 deletions(-) Message-Id: <20200713054259.7608-1-Denis.Osterland@diehl.com> base-commit: 2742b4192a279c6ec72e55d5474c4c07756c7845 Diehl Connectivity Solutions GmbH Gesch=E4ftsf=FChrung: Horst Leonberger Sitz der Gesellschaft: N=FCrnberg - Registergericht: Amtsgericht N=FCrnberg: HRB 32315 _________________________________________________________________________= __________________________ Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-M= ail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhal= ten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung= und/oder Publikation dieser E-Mail ist strengstens untersagt. - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten = Sie unter https://www.diehl.com/group/de/transparenz-und-informationspfli= chten/ The contents of the above mentioned e-mail is not legally binding. This e= -mail contains confidential and/or legally protected information. Please = inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, dis= closure, alteration, distribution and/or publication of this e-mail is st= rictly prohibited.=20 - For general information on data protection and your respective rights p= lease visit https://www.diehl.com/group/en/transparency-and-information-o= bligations/