Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp101600rwl; Thu, 3 Nov 2022 20:28:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53gRG8kddDBdqYuVhCUTMc/IAyY8Tae5522lRlg8xXkOTi8JbopGv/juHcw6MnVBSy8Op8 X-Received: by 2002:a05:6a00:80d:b0:56d:93d8:f42f with SMTP id m13-20020a056a00080d00b0056d93d8f42fmr21578931pfk.14.1667532483097; Thu, 03 Nov 2022 20:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667532483; cv=none; d=google.com; s=arc-20160816; b=oxCc2DcwArl6o4uoZZmvfCuP7vO+nOdZUkHGEfM1QxWcuF6JZDriaYLfJV5uqPJE0y Ht8EMODShIT+ns/bd3Xr+vTbUW/KbUe6NxqReDcrbw4GuXVRd/uPLpE1k8Vo7+Sf8PcV 5T3U+BRf5Mi0CVrNtqtWd2TGRzjaSACgUmUJ958nh+9b0GQExQsLPl8YqrVxUSxVeFlx WD+jloDkpeR7u5BuC8yEx6adhwVULOQji+k8+DPEboPFZMhIQWtZHtZ3yctTl8WGTfxe 6fcUhSc+c1cGVEgJnlhLw3xjW5oZlu+hyEP1loa6IJC6wu/Z4ZKTjES7rApe9jIvHIJx SC3g== 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:date:subject:cc:to:from :dkim-signature; bh=nekMKek88OrPUkYJ4VB8OmAAcdm9+OSYr1boF1eblE0=; b=LaQoGOysPN8BbHE10PrX5TEVL9GsrGSs7NOFoyqc2VTh6Ih3wb0y1F4qwaExj5S/ip bSl32HCvRHrkLaSDcT3pqD8Xwbp4jbZ1tsdSWI3Tgd43P6Za92roEbPwwcSv0+xsX9yE 1DWql4W9JX7BIgdt/9gzz6UeZ7v4S3YzRjwn39f1ZpIxC5fnycF5EcF1bMMlJhEoxKq0 ulk1XSlLLs6zkN2CQ/Tjg9Mjl49X4JKZQW5dQD0iSsRoDCuunx605ayOZno/z+UMJTSU +Iwbdt1LfG/nPUyqwRP1aAZveOdYU11ErgcBoMvIkXuzwEAbKRKUpF2u5A1Xlwyxp55v +WCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oPYniO1M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u21-20020a656715000000b00452baa58e5dsi3566110pgf.275.2022.11.03.20.27.50; Thu, 03 Nov 2022 20:28:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oPYniO1M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231354AbiKDDRr (ORCPT + 95 others); Thu, 3 Nov 2022 23:17:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230511AbiKDDRB (ORCPT ); Thu, 3 Nov 2022 23:17:01 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 392B725E91; Thu, 3 Nov 2022 20:17:00 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id i3so3376327pfc.11; Thu, 03 Nov 2022 20:17:00 -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=l7OUjsEZPhsuq9FMWrVKLPle6GfAx1wWWDvwFXqPbGp1ZA3HIoKSKok+7xvzXGfu7z JXWwVj7hDAROaIFu8lySiIvKPJzBCYNHUANAS2FWo3HpJBHIe0UkXgc1skVtd+spiLBt T6Fe2bzQIhB7preRhps+cwjd0wgJeY40c9BoszSd8INZuoMDm06LN30l7sW1v3ZzOMQ9 FXCspZxKaxXNDY4Hok1hgkEqSgUXEyO1T3NlSiprCodm1Sk91fHQ3eGbmVSva8fMaxnL t+L+OKRVvmucRqUv8v2q5qIKfthPo7kONinzOhVW7wG6mZEY2/IaBzUh9bM9TZHq/STc nsgQ== X-Gm-Message-State: ACrzQf0WXC+oHvQGeIYCv9Toxaw5gwX7K/uh08rOK5o4sfjzVts78sh2 v7ytAcWf14qraC8Rksa8Btw= 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 Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org 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 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.11.0-dev-28747 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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