Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp107232rwl; Thu, 3 Nov 2022 20:34:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VQElNIKnY5P7gSX+R4qLXvZD4Bxb34xvurhRWES+2I56eBnNTXiYqYvCNjhpyeg7qBVby X-Received: by 2002:a17:903:cd:b0:186:878e:3b08 with SMTP id x13-20020a17090300cd00b00186878e3b08mr32939208plc.93.1667532851012; Thu, 03 Nov 2022 20:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667532851; cv=none; d=google.com; s=arc-20160816; b=RS/b2OVZFiDBrK9pPJcUGbd/3nsmmwv4IFd5ThfWQDYnKVMNVOoD7qvZO0kHV82rwf bsWS07rkdJjWWIimeEXvPYX06AU62Xx7Fm7TEuMvAgbdKy0t2EwyDgMktdb5L6MFByWj CrWStAdnCTHPNwTYAkQnIuTcX8T6AZgmirkd7K68zIXbhnuJy5cnaFN5XcZhUIavltn5 6MVD+oRmDBQCtWoXwj//dtYtJFXqobcwDhUERR9dlBe2drPktKjnXuFmF6VkOaWz9RZi aF5wzWJQcW6+dFphPK4rx4HXdI8T9V/I3HPLM9i+FxY2lZGHFlmN8IC2kcZsCd2Y+kku w8uw== 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=4mrkRiLGHBiE1WHjFsF1gLPe7uFBZgJGqIAjNRZoVoo=; b=JmQyHDluHopplOpz8mQ/i1UJx0TcWZTH/ltlNTmLp5XgtSSziEjVX7DfBz5bvDcl6t KbojQZoTtPjgljeJbosvXAhQuxqzCrBPdfrQLKXG27ATBLU+mhcFr6Guadn16KYfWELh XRlAjQbq6/XJtT0A7Sl8eS/DM6kxwbcfKvmLhYGK4PF7BlJOumnA3ktZ/jw4grgucZp/ l57WK0RrCOu+nO8yFJk2EsygFgvrZ1x6R3iM0n7hCh4A4YpgJ7c0NJPNkTyHX0hNMfuy 1GWmwBdxsnqXbVMIfPXXBZSuew7zvQHGQKLhHDZjXdTdNwbsj7pM+7E96sQ/slqC6MG1 LtFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HkmrYXxW; 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 t9-20020a170902bc4900b00187099bc91csi2301391plz.581.2022.11.03.20.33.57; Thu, 03 Nov 2022 20:34:11 -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=HkmrYXxW; 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 S231313AbiKDDRe (ORCPT + 95 others); Thu, 3 Nov 2022 23:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbiKDDQ7 (ORCPT ); Thu, 3 Nov 2022 23:16:59 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E02025E80; Thu, 3 Nov 2022 20:16:58 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id m6-20020a17090a5a4600b00212f8dffec9so3596204pji.0; Thu, 03 Nov 2022 20:16:58 -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=4mrkRiLGHBiE1WHjFsF1gLPe7uFBZgJGqIAjNRZoVoo=; b=HkmrYXxWTyDe3g96JnmaUm43+QWhwNHxqNuW1/I53yJBWjfdFg6tvChe11ViISD+th f1KD1mHiHtzeyY0SGYHVkgByA9Qu1wk55aU7XIWLX997wlvb8NBYn/SZfPA5x64+uAVK TJ6JYA+U6KssA4iXGyYmMqurbDZ6xxe3LMFsk4Bd6DvCihdgHjz6EnTGR/RvHpvHAYhj tm3vYT3jGj7/Klj85cVy6nxUHh+KkIFNz/52yLVZQz88FmX8Fj/8nSarRF6Hyw9GmPe/ UBtmgLM+/K2ONJDypvCkOcGSZlaXwytal9/UdjA/sdmPrpHgju/Zs5MhvBDchAbrqZ2t 63+Q== 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=4mrkRiLGHBiE1WHjFsF1gLPe7uFBZgJGqIAjNRZoVoo=; b=pdLzrPaWOylAthwj1BVgEFxNoxEO8Zr5O7S6mpXavfvPJx25ISumcifbus4a9z2+62 rUjx1g4pVyxHSixAvBVF9Lx94Y7snVTVpKo1M5rKn9t7/sxJ3c7AaG/UUBw0EXTM2WWk 7FfnNZ3MNGZ47PJlKT2VA1DWRxQNCH6KAJXjAEtC+rW8K0KLIPJah1bQSPtIjousMFtY 7SQy3pXBKkhWwi218U3f1anxTxSjME0sjhuQGZcgfvR1U1oqFN6+MAE7ZwbYeMlR2Pha ktf1utV4WUSZDh0CRneksiN/zTemGRWRDT4+ekAYyHZItBy2mIaaiV8a05KTRYQ+w+OD ALyQ== X-Gm-Message-State: ACrzQf3Hh3JFjj3/v1+2aXdDVCuGEpGfroc7+TtoFtaGqk8TDkG2fjkx 5VFibTcbFM2H6C62U5McL0fkoG2QATs= X-Received: by 2002:a17:90b:1982:b0:212:fe7f:4a49 with SMTP id mv2-20020a17090b198200b00212fe7f4a49mr52155514pjb.156.1667531817811; Thu, 03 Nov 2022 20:16:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 20:16:57 -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 06/13] omapfb: panel-tpo-td043mtea1: switch to using gpiod API Date: Thu, 3 Nov 2022 20:16:35 -0700 Message-Id: <20221103-omapfb-gpiod-v1-6-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. Signed-off-by: Dmitry Torokhov --- .../omap2/omapfb/displays/panel-tpo-td043mtea1.c | 59 ++++++---------------- 1 file changed, 16 insertions(+), 43 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c index c0e4e0315b6b..1eaa35c27835 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c @@ -10,10 +10,9 @@ #include #include #include -#include +#include #include #include -#include #include