From patchwork Thu Nov 3 22:46:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 621654 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98ED5C43219 for ; Thu, 3 Nov 2022 22:47:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231715AbiKCWrx (ORCPT ); Thu, 3 Nov 2022 18:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231429AbiKCWre (ORCPT ); Thu, 3 Nov 2022 18:47:34 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4635822BE8; Thu, 3 Nov 2022 15:47:26 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so6652513pjk.2; Thu, 03 Nov 2022 15:47:26 -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=3X26rknx/0lmJfmFIFsGeakVjwS4PgAaf3ahk4arl/w=; b=ilB526eKd/8ilrwsSPLckfywAou4hodKS50T45woYDzwYbHHxHLDfVcpcf+cpFnUmU KI18gsRBZPVocj1QAyOt7zGP+TX6dD61vLTVVv+Ke6Mn3nxeYlpKCL6yqxAcaTgwaaYL T5NoSU2vMGWlu3QPxPmrbDYZzmXw2cJ2tdn2VGadOy0LQVjZVW2wpxRYsofemPIrZE3X J627uMC4StcVgXpdeY0/TZz1CGsh2wl3zR10pnZ5ekAxHFKy9DYBq/70vKpdKPAASjVl o5ihnTIGo2yqoAOdizkiVs1MJFx2Uwly9txneCdEysBNjNdBaNW56b7ZRrQSdhoBk4NE vvuQ== 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=3X26rknx/0lmJfmFIFsGeakVjwS4PgAaf3ahk4arl/w=; b=MagYH+HgtE5IGMr5ZCq0gTuXakJJZWVdafDiewI3EUXPpdqUeZXzmloAPBdqKaNZ9h beFZX77FSzO+bsP4iM+dGEp5yhKEEpiXl11ZiuPVGqtXKHGNM9a190Z+Z7/u+l4XsGut ZlNyGd6F+F17dTN+9e0yYrV++u8MiKuPY8ePJEsR/i3kcxoDAQd87/1ZfBdcXDcl6+76 83fdiURNy4ZQMs2rY+q5RxX7Vzd3uALUhQXe6670fCJB5jmjqq4M4AXCQzmMRQmXUXRx MCF05P815U/MSa3oNyVIyAso2SagXn2dFaXc3Y8qznTb6jxh6o0ytXzzJ0133LshJgIj Eb5w== X-Gm-Message-State: ACrzQf1JQTl/SHV5vUCp6mBM38kjJVAU3mltSHPoQVP/WEBnpFX768T+ 5MJe2wWLjuJCqMc7uc8sdGs= X-Google-Smtp-Source: AMsMyM4IK3WWfZjxdVGCdvLQJUqFVt5Ge+7F+td9f7w7jnXE/NGyg/cSHud+HpRmlrEzKuoWVdrfOw== X-Received: by 2002:a17:90a:eb0c:b0:213:8ff3:a46a with SMTP id j12-20020a17090aeb0c00b002138ff3a46amr38528966pjz.158.1667515645445; Thu, 03 Nov 2022 15:47:25 -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 g13-20020aa796ad000000b0056be1d7d4a3sm1280421pfk.73.2022.11.03.15.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 15:47:24 -0700 (PDT) From: Dmitry Torokhov To: Tomi Valkeinen , Helge Deller , Tony Lindgren , Sebastian Reichel Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 06/13] omapfb: panel-tpo-td043mtea1: switch to using gpiod API Date: Thu, 3 Nov 2022 15:46:47 -0700 Message-Id: <20221103-omapfb-gpiod-v1-6-c3d53ca7988f@gmail.com> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog In-Reply-To: <20221103-omapfb-gpiod-v1-0-c3d53ca7988f@gmail.com> References: <20221103-omapfb-gpiod-v1-0-c3d53ca7988f@gmail.com> MIME-Version: 1.0 X-Mailer: b4 0.11.0-dev-5166b Precedence: bulk List-ID: X-Mailing-List: linux-omap@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