Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4440645ybi; Mon, 15 Jul 2019 08:58:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqznHU1ZoRuGfo2lI1Omko5gXQ9Uo52kaHAb+hZDN9F3AkSXONccORzauewHFdyRBjMqnsQH X-Received: by 2002:a17:90a:a116:: with SMTP id s22mr29844762pjp.47.1563206316610; Mon, 15 Jul 2019 08:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563206316; cv=none; d=google.com; s=arc-20160816; b=bDW3UNNa4XuOmTqfUvs72XU+fUXLSapiKpIn/FwZ8FeC6HBytFY5o5OpeAY3XBvbuF piTkpqptCgu6xS0IWqyEeGUim4vYeT07XdvGlTxIP17HYPrYGK3cwGI7uNLO1aL9K3lT vl5BO59MjtZ/xm3ddMfzJ8kEo2wGsO2R3Z/oFfJhNwF5QulN9z7F0OxJLHdik/SQTU5r vLd6j/AoR0HBjFPDDrK2OpUTJapvY/nRPl5doX0Nz0LtXt3Moukpw5y5QpTAjN64THh1 PrAmVyZgeB8j1yEAH6m4+6clCAV0nXXiPdjqxc3ripRYIkze7BzMx7JpfhuDexz4F2qy HeEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=GUsIFAcLwu/Lmx/f5iSP9bcMoUUuB0rg2xzJ/SpvqYA=; b=MY+Bn9LS0HHS9AKJwuNdrEcxQtKog9EDminxqguCyocH+ywngtkfHv/qpNyoO8Gkg5 WTE35wZrJTl/ghknhxd6wnxiJsf0TFc7QTVpwZSkO93mmdYTc4UNk+bXjyrGLl09jOCl 4aJJZ5n+MdABQRGe7GnRY/KwsdVjjgYizfISOt3CzLLN12mKU21MVYZs8p4RDrGDCKTh NJZw7HAf49pzccWfz5jCEMHxLk3Xoi1bwr22gwDS6oa7rrHrW6QrSuMOhvshcHo7IwLU HzhloXJ4B8Ewg6b+91H4SD77r8+nHCpdZXuU00XW+NZGPwUcQ5bG7bZPVZvsRXzdOtB/ h87g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Cq2rWJ5j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r145si17231138pgr.553.2019.07.15.08.58.20; Mon, 15 Jul 2019 08:58:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Cq2rWJ5j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730942AbfGOP5e (ORCPT + 99 others); Mon, 15 Jul 2019 11:57:34 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:49280 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730257AbfGOP5e (ORCPT ); Mon, 15 Jul 2019 11:57:34 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x6FFvPqP010346; Mon, 15 Jul 2019 10:57:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1563206245; bh=GUsIFAcLwu/Lmx/f5iSP9bcMoUUuB0rg2xzJ/SpvqYA=; h=From:To:CC:Subject:Date; b=Cq2rWJ5jAaAEvuorIG5O3R+UP21Gnj5kAIJMTmwFi7jRa1NdVpvpFSqfIikVAfTsd JwpTV1dtzcpvbWkBcrvWcViFD89EdUT6ddXjsbBIMC8L+qv1tYmx6Iu1B7dW8MBQbT wXAvKx4vYoop99VbubjE6+4yFd1gcK0yqnajzH5A= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6FFvPSJ084906 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 Jul 2019 10:57:25 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 15 Jul 2019 10:57:24 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 15 Jul 2019 10:57:24 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x6FFvOhL003859; Mon, 15 Jul 2019 10:57:24 -0500 From: Jean-Jacques Hiblot To: , , , , CC: , , , , Jean-Jacques Hiblot Subject: [PATCH v2 0/2] leds: Add control of the voltage/current regulator to the LED core Date: Mon, 15 Jul 2019 17:56:55 +0200 Message-ID: <20190715155657.22976-1-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series makes it possible for the LED core to manage the power supply of a LED. It uses the regulator API to disable/enable the power if when the LED is turned on/off. This is especially useful in situations where the LED driver/controller is not supplying the power. changes in v2: - use devm_regulator_get_optional() to avoid using the dummy regulator and do some unnecessary work Jean-Jacques Hiblot (2): dt-bindings: leds: document the "power-supply" property leds: Add control of the voltage/current regulator to the LED core .../devicetree/bindings/leds/common.txt | 6 +++ drivers/leds/led-class.c | 15 ++++++ drivers/leds/led-core.c | 50 +++++++++++++++++-- drivers/leds/leds.h | 1 + include/linux/leds.h | 4 ++ 5 files changed, 73 insertions(+), 3 deletions(-) -- 2.17.1