Received: by 10.223.176.5 with SMTP id f5csp2313074wra; Mon, 5 Feb 2018 01:49:13 -0800 (PST) X-Google-Smtp-Source: AH8x226jn9NGjCMlhRzllt5rcIMUi5sD+o3sU/wnWFjBtJR+AhGOwThK36YB7EfaChgzTBc9UldD X-Received: by 2002:a17:902:b604:: with SMTP id b4-v6mr28092092pls.32.1517824153641; Mon, 05 Feb 2018 01:49:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517824153; cv=none; d=google.com; s=arc-20160816; b=Tp6hNwSD8y2M2z4kEl/R/vZFN4rIBsPgILVzBu7dEI0007fr+lUS4gbqh6i0crqbw4 NtdN9eJ9258XrWKdoTew59L1SnTpxuuVMwVfzcFSiokWnGw3wx/dF/LzA0UhjlVR6qwW /Qee1M0nAZf+8bbDW59U+xj1eiOtgnHA1AgLqd5vgCqZVjkFio7SAucRNGXD6+8Y6oiV SYCtkS97CQb/4kTLrCQD0W7dLa14MehtMGeSfVm2Do0tYdy3MB3yFsoQbov3u6esotmO PO7Ipr1fV97DGUSW0Rj0yHw1u+s1u/HyfZWekA2/1vpxT34Vjv1BVkfHdngNULHQa356 MEmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=bzSHDSEZEagEeSJfX4ZKE96LZmqXT7IX56V5ZHQPk/Q=; b=V29kGcJ5J7e3MSR5m+2qaDQSJIYrLM8Ea50gIUY8udh3PqLuMoevX+4f+nEQDOHhXr GeY9HI772fNxayfj9XH27HHCkZf9eDLUsoNHXMVcngnjUlmQHVpwklCKq2PNx+0x4Rx4 uldbMSNXzr+mSUq9s99M3BUCAdHLm1yCTaPoXCuOjVHhF1uc1kJ1mLUX0Au3GQSFD7mD ihhYm+puCiNIP4gtCfHhHfFER6xmNOBX8P8iujggb+J/wvW968PHLa6zz6PpBsuntx3L sOHAy/FmV1YvMF/6JvuNVusbxycTiiLtM1G/y3LeQZkykBQbOIHVCFpYWCSpUhanuc3O pX7g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si454384pgu.551.2018.02.05.01.48.58; Mon, 05 Feb 2018 01:49:13 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752840AbeBEJqf (ORCPT + 99 others); Mon, 5 Feb 2018 04:46:35 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:16378 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752510AbeBEJqI (ORCPT ); Mon, 5 Feb 2018 04:46:08 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w159idWl024082; Mon, 5 Feb 2018 10:45:51 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2fw3qwhd9r-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 05 Feb 2018 10:45:51 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E1F1431; Mon, 5 Feb 2018 09:45:50 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BFCEB159A; Mon, 5 Feb 2018 09:45:50 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.94) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.352.0; Mon, 5 Feb 2018 10:45:51 +0100 Received: from localhost (10.201.23.32) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 5 Feb 2018 10:45:50 +0100 From: Philippe Cornu To: Thierry Reding , David Airlie , Rob Herring , Mark Rutland , , , CC: Andrzej Hajda , Yannick Fertre , Philippe Cornu , "Benjamin Gaignard" , Vincent Abriou , Alexandre Torgue Subject: [PATCH v1 2/2] drm/panel: otm8009a: Add support for the optional power-supply Date: Mon, 5 Feb 2018 10:45:32 +0100 Message-ID: <20180205094532.23547-3-philippe.cornu@st.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180205094532.23547-1-philippe.cornu@st.com> References: <20180205094532.23547-1-philippe.cornu@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.32] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-05_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the optional power-supply. Note: A "dummy regulator" is returned by devm_regulator_get() if the optional regulator is not present in the device tree, simplifying the source code when enabling/disabling the regulator. Signed-off-by: Philippe Cornu --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c index 72530983d55d..90f1ae4af93c 100644 --- a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +++ b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c @@ -11,6 +11,7 @@ #include #include #include +#include #include