From patchwork Fri Nov 4 03:16:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13031262 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CBC84C4332F for ; Fri, 4 Nov 2022 03:17:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D353810E6DB; Fri, 4 Nov 2022 03:17:14 +0000 (UTC) Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by gabe.freedesktop.org (Postfix) with ESMTPS id EFC8910E6CE for ; Fri, 4 Nov 2022 03:16:59 +0000 (UTC) Received: by mail-pf1-x433.google.com with SMTP id y203so3403388pfb.4 for ; Thu, 03 Nov 2022 20:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nekMKek88OrPUkYJ4VB8OmAAcdm9+OSYr1boF1eblE0=; b=oPYniO1MtADtJtuw4q4+C20hdzvodf6jSrPaX3J9tWE9wbkPGVDQeExemFb+FhE0/x h86dPAwa3MqkgKsCjfvra8knhjsbtHsa1EVMrFS+egrOi/ZYv0A/Zeorm40BXXHsfgyo MFifWX4YicxVyj6KbftzPWM9+gwEpnLd++s1w5jKCSVvQSIXC0dMAnl7P/xDanNHcJon Lhfwx1syQS+XZY1CBvg4E9HkddvJvXPO4f9aoZF4RB2PY/lV+eiQaO9k1hnWiA2ldYhQ g102yHZvQ5Ff8Ptv7Xwb0pZdS8hBWUrX4TuSMDQ4dcEOEIfrqkWCWRF2hd365tHI7Kte CSqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nekMKek88OrPUkYJ4VB8OmAAcdm9+OSYr1boF1eblE0=; b=6eC58Cdqwx0MqSyhPQNjDDKge1W8iBCf5TK4QO9S8T36mu5dXZh730mAzlann7//jG UX1Woxp+owubVszDfBGDAn8hVVGfewOWR3G160p2Xv9tmW9MPJ00IiGZB5iH1C/7J3lK 78+PwtHCN2l2Tbk7ZeIWV03rH2dhn2xl5Z+EIZpQV0Gi1hgRrzeOt3vKtifalFM+w6Ij IYSlzLOaV1E4j83vrTpa9274Y1XgnzBjtx6Phuc7938ICGbZNZbXt24y5iO3qAC1Bhc4 +hdnJtjCV/ZQ2Ies/7kT2LUb9U+Sl0c2ySf4SpdM9AslU/JGBJSbmPvbaZOocnJd0rHk Xhtw== X-Gm-Message-State: ACrzQf2Bw6MJrAm+6nR+WSryihq6ReP86Q+vMNCTVFuitdQuZh7yrEiw 8el5GNhxmmgKPxZWNvJ9Z0U= X-Google-Smtp-Source: AMsMyM4tjxDH3I9/SGWnHbcfvNSs5puflv1f7cQrHpZ3l9cFk2LAz69U4h06qmIKaA9OS3B/R5EUpg== X-Received: by 2002:aa7:9624:0:b0:56c:8c13:27bf with SMTP id r4-20020aa79624000000b0056c8c1327bfmr33745147pfg.20.1667531819540; Thu, 03 Nov 2022 20:16:59 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:9d:2:a6ae:11ff:fe11:fcc3]) by smtp.gmail.com with ESMTPSA id s3-20020a63ff43000000b004702eca61fcsm1078655pgk.36.2022.11.03.20.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 20:16:58 -0700 (PDT) From: Dmitry Torokhov To: Helge Deller , Tony Lindgren , Tomi Valkeinen , Sebastian Reichel Subject: [PATCH RESEND 07/13] omapfb: panel-nec-nl8048hl11: switch to using gpiod API Date: Thu, 3 Nov 2022 20:16:36 -0700 Message-Id: <20221103-omapfb-gpiod-v1-7-cba1fae5a77c@gmail.com> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog In-Reply-To: <20221103-omapfb-gpiod-v1-0-cba1fae5a77c@gmail.com> References: <20221103-omapfb-gpiod-v1-0-cba1fae5a77c@gmail.com> MIME-Version: 1.0 X-Mailer: b4 0.11.0-dev-28747 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Switch the driver from legacy gpio API that is deprecated to the newer gpiod API that respects line polarities described in ACPI/DT. Note that because existing DTSes specify incorrect polarity of reset lines (active high) and GPU drivers have adopted to this, we follow the suit and use inverted values when controlling reset lines. Signed-off-by: Dmitry Torokhov --- .../omap2/omapfb/displays/panel-nec-nl8048hl11.c | 72 ++++++---------------- 1 file changed, 20 insertions(+), 52 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c index b407173e27b1..33563953b2ff 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c @@ -7,12 +7,12 @@ * Converted to new DSS device model: Tomi Valkeinen */ -#include #include -#include +#include #include -#include -#include +#include +#include +#include #include