Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp121790rwl; Thu, 3 Nov 2022 20:51:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM455xGBueAx4oiU5F8903xrctJUL5gTpNgeElHYcfVl3G7TkKk5/8nvE/awqQs/i3xbqVs3 X-Received: by 2002:a17:907:8a20:b0:7ad:e0cf:417e with SMTP id sc32-20020a1709078a2000b007ade0cf417emr21978291ejc.17.1667533873453; Thu, 03 Nov 2022 20:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667533873; cv=none; d=google.com; s=arc-20160816; b=UotteeRk6WTlDr2xHDIFzfPLR/ee1Mvi40lcbmoCl/Qek9spjmusMzYy5CN9jS/qGs ZGWoAQfyYgZNnJJlnhS78a4JOkc3ZVgXH3NZn9Xpna4ZUmbDqXJdLcUpzGA7jY2grLC7 eCX6vn2V1EWN2X/hsvq6372I1d3+MRBgw7C0D4Cx3uxAtyNCXS04LecsAjgpmeFPtrBn mA8MsvEtZ6I36CRLtaGmNL+Unacw82Knlo2nZFA0hyjr/fHO+kf6RAf1eoDW/AQvStid mIaxXpzDctuAwIYOW4Gn5pwiaH5t213sKZh1zjBKN11YaSysqpEbK50sRmLKY296q4p4 L5Ng== 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=vESVsop4ZB+nxJMme9WqcQCG5NESqBZw6q6kC1WMIIw=; b=GEykWziafM+IhcdBlmHrb//3BUySQa321p+Yv/PqpVhBwvggJooVTkoL8H2gHoKMA0 UJEAGxWcwgPnCm8QXeT9kkXyEUL8zm3WQWATUuhaW/99GuMKDbTWC0J8eMoy9n12HnBw MXsrc6IFsyNoeCEQ3OlEvkx/hl4qdix6CZm89q8WrPqi8jVKrQ6cDc2mgI7a9QWngPAm z81Z5tXUec6AVATI5ett/YqqJ5a4+yCEHnBXgf566i047ATnpzEKSuc0IrIZlI0JN5gR YluejRQFDfD3OUQAeIsxw0pcaNwxeiNtj9ZwqHl7VadKV9mVyoUMU0EgVuKOK4NW4gtz 3vGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PZKdhoML; 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 m5-20020a056402430500b0045d9a3adf48si4146364edc.591.2022.11.03.20.50.47; Thu, 03 Nov 2022 20:51:13 -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=PZKdhoML; 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 S230254AbiKDDRJ (ORCPT + 95 others); Thu, 3 Nov 2022 23:17:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiKDDQz (ORCPT ); Thu, 3 Nov 2022 23:16:55 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04C3125E81; Thu, 3 Nov 2022 20:16:55 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id q9so3401351pfg.5; Thu, 03 Nov 2022 20:16:54 -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=vESVsop4ZB+nxJMme9WqcQCG5NESqBZw6q6kC1WMIIw=; b=PZKdhoMLbT0Q3wcy5njb/+FOYlfWcqBjMzdoeLUeT8U5lV7KYOXsQiPt9Wj03zExMH vtBa9/PDAvfkik0KWRk0NEISIji91MpaRtHCekvMaGIlmVk05bBQr/cu6yb5HPZNCtAo y9vmjpRjg6PqjyBXReyMeKa4P6I1jVx397kWHUBrpfXeHPCVBOfnayoqjV9PsO4pKyvV nSN1Ey2unqmR25h5BAk2DwUdIWJwK0UpSKScksxLWI/JJUA+gtLONsgY9dh5ug91AgBl kUYqPZ4aKoUGvIZw0CJ7Wam9Yv2BgpWicqW0UvaTDXO5yf1+77D1R79HAZtM/lub/zpH Dihg== 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=vESVsop4ZB+nxJMme9WqcQCG5NESqBZw6q6kC1WMIIw=; b=uaNGuv0kCueUDyzXQZehYBzfpTnPi8wqe0Ey1AjFQPsvgtZe/oyu9Kv/bCXdpCDTq5 HNDuv5pjeIEiBtiFvJle4y5X5CzmyRqw/lm2Ubj6i1bJtsJHCPhZndLOyNE1iFMM2qCS P5S2wnspocCc1s1m0qM7bEf/VNpph898nxSGN02oU1OPPpq9t9kc+uJxHvCUbtq5Fh3l 03ENcSC7hze7cEB/IJriPgLwSfNLoB9IIjwoaNiWBsAHwpF3vcA/M5vblVhoZw+YH7K1 uEQTAsxABflJ7eDZoAluqYzv6LZkb6HJBinJ9fv7GxLRa0p1yAV3EkUbq5hYBsKF/M+3 B7VQ== X-Gm-Message-State: ACrzQf3PTmgdlqAMd/SbVffsTBkIe+erRT24Km2/JjZTtSVNhJRT2sCR 2cdWvCqMZU2OtLeSVLiypIs= X-Received: by 2002:a63:fc0b:0:b0:46f:87a8:97aa with SMTP id j11-20020a63fc0b000000b0046f87a897aamr27223139pgi.234.1667531814293; Thu, 03 Nov 2022 20:16:54 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 20:16:53 -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 04/13] omapfb: encoder-tfp410: switch to using gpiod API Date: Thu, 3 Nov 2022 20:16:33 -0700 Message-Id: <20221103-omapfb-gpiod-v1-4-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 --- .../fbdev/omap2/omapfb/displays/encoder-tfp410.c | 67 +++++++--------------- 1 file changed, 22 insertions(+), 45 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c b/drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c index 09a59bd93d61..7bac420169a6 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c @@ -6,11 +6,12 @@ * Author: Tomi Valkeinen */ -#include +#include +#include #include +#include #include #include -#include #include