Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp101673rwl; Thu, 3 Nov 2022 20:28:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5AlkaPR7HM5oSd7RFx3qDpk1ul5Y2myibPx6BtTlmNStG5Ebli3FlC78Pc45maapivksyx X-Received: by 2002:a17:90a:bf11:b0:211:84c5:42d7 with SMTP id c17-20020a17090abf1100b0021184c542d7mr50770133pjs.122.1667532487489; Thu, 03 Nov 2022 20:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667532487; cv=none; d=google.com; s=arc-20160816; b=qULUKulq3kGAUEdiaXACeh9syLDDprXpyd6TkXj+rfi6g9QzcZnuzmYDHFRGeb2Ckk jru7OEkFZKqRNe+W5RCXNh7iYw9PzmNgTWApQ5IfLd44KEDaF90ThVYDImF2KZ6LSM37 m9jnWS5PLJ+3wSuesimnNXLQi9gqEU930D2HwbVnGPPx8xzEX+YB1lzSF9W3SBkCPGjJ nMRNgzz680jthGEyoUQiH2kxbZswl1l8VNkNirOWmeezJB8rpSFIFkIt9glU4pR9gJwj S6b7eaklT+ZhjplMFRIwJmqd8OFcRjd0aZine6oCfAuYQEuNxCqLFead5KUEfWejOyob d+/Q== 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=WJ4K4KM6k2CEMbYDdflp8ef3L5pfloTxSXh3e5bS5/U=; b=g1fynLn8LkvEXwP7A3heDHYo7klAdmkYvpXDtMzvz+/l9fJPdT1krMugFHYimFPB5h FDAxmLWlzT3a+VIA2E1Yr4UjtOlG2KlAN0YjFLuHORFuXNhMpQ9C2HuKzih07yExkftl xkDNPqMhl8iqkjSWGf3FGcAmz+EpLskjh8W2ulfxrY0HjT+xMB5agVvVOUjphKRnKG+n neb1p/tdp2y9u0hH/TCxZRjtcbBe/3wEyT6pR0Y9OkUw3wuAssiH8Cr2triZGEUUTgMp u57otJXPenjHy+Kp0VsQafDAPcJf1UWURIVmmvvVUr8D899wbpi+pn0DFgMFPzjugBsK FR5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mMQlwS66; 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 p18-20020a62ab12000000b0056bfad4be89si2678820pff.311.2022.11.03.20.27.55; Thu, 03 Nov 2022 20:28:07 -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=mMQlwS66; 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 S230527AbiKDDRO (ORCPT + 95 others); Thu, 3 Nov 2022 23:17:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbiKDDQz (ORCPT ); Thu, 3 Nov 2022 23:16:55 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CC8C20186; Thu, 3 Nov 2022 20:16:53 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id b185so3388870pfb.9; Thu, 03 Nov 2022 20:16:53 -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=WJ4K4KM6k2CEMbYDdflp8ef3L5pfloTxSXh3e5bS5/U=; b=mMQlwS66ofHJZcvmNsBsP56KBfkZqf7bHVWZj5b3L3LwPXH3euCSEKqDgemjDI3qS5 XduOuI6an41I1Ag8zzdIcXbKvpf2RtApKU5PUvblvfHX3aTGe/SSkLkeA6ZgpkxfYst2 809l5GzXUbv7o55qkWSmaYv3GcrGlR7XDDh5vU8pnAhgPdRky6olkW4az16LiKYx2STM GOgbyXjP988tOfK7Ln7OTkwtW6wvCKxHphVZ1FN1SinsF0ao2rl60Zbz8Brg3gzkumuk 3q4jY+FC1EbOO3SYcJ1q/whOJcTSWe3VIKoVKSwt5/5wG/xxjUYneEJSqxgbMpq4TfWR 7ebg== 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=WJ4K4KM6k2CEMbYDdflp8ef3L5pfloTxSXh3e5bS5/U=; b=jmXVh6BGHyl4BYPW+SNVWNCW2uEzBTwL3bWs2B0bCltaBQGD5BlRu3McHEnFof6wEB nH+tzB/pGedD25wmM95eaTmJPtUXgUU+CytusfyvgusoqgN3eOMvXva5xG6e7r4FdfUx NS5EZRA9kGIgJRqRYf8sASULllzuPe40ruR/St2yOQ/HpcxDEflwQIZxK82g2vIqL8eR W5bu1oB0PrhMMZ939hvCoZYIUhLBCuH2y5Cti+mvTWDYnCpQf1oFwwpaR0JceVsgU5Oe ssmC0o5JccL0feSd3OphzydVkqQtwnx8Cd8gUMftNv513AyMv994/fEDL8dfZkucOOGz Ptxg== X-Gm-Message-State: ACrzQf0CDHWZyDOxw4CyD4URhmnjS5YvduIv2Q7OoHyKGmP/fQRbOYed qpEDbB/Zw6Xh8GeS418UnwY= X-Received: by 2002:a63:354e:0:b0:439:837:692f with SMTP id c75-20020a63354e000000b004390837692fmr29007595pga.74.1667531812631; Thu, 03 Nov 2022 20:16:52 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 20:16:51 -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 03/13] omapfb: panel-sony-acx565akm: switch to using gpiod API Date: Thu, 3 Nov 2022 20:16:32 -0700 Message-Id: <20221103-omapfb-gpiod-v1-3-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-sony-acx565akm.c | 66 ++++++++++------------ 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c index 0c81d3ff4197..685c63aa4e03 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c @@ -18,9 +18,8 @@ #include #include #include -#include +#include #include -#include #include