From patchwork Sun Nov 25 11:23:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishad Kamdar X-Patchwork-Id: 10697783 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 963E315A7 for ; Mon, 26 Nov 2018 08:34:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83DE42979A for ; Mon, 26 Nov 2018 08:34:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 777022979C; Mon, 26 Nov 2018 08:34:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BDADE2979A for ; Mon, 26 Nov 2018 08:34:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0E3EF6E2D0; Mon, 26 Nov 2018 08:34:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1640A89CF5 for ; Sun, 25 Nov 2018 11:23:33 +0000 (UTC) Received: by mail-pf1-x443.google.com with SMTP id z9so5208044pfi.2 for ; Sun, 25 Nov 2018 03:23:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3nwfMhrOFoCLRdJ2gF2RPDC00oQ9a06MU5Aupz66xdc=; b=FobLvlY7d+60ltvqzDgWqRI5afmdUZ7lh5h1lv55LQPkL1fOYvICdiJ4ijoEQTHFqn KTo0H+a8QQhlb2Ny4Ywe4fV/iDldPQRtTb01bnfGfxyVeC3LvEI8V40qfM7L80Pq/4k0 wVJqJofvZY9JknjNId9GmjHCGhlzR+XD/UCL6aCGdMTlYjGEfo6aIgt51Kwwbs5iMRVY KAe+5WUpR7n8C742Q3lf5kT4YQnnfdcElKiJJO2h9wqPVSuZNOqk+7sX/wp1Y5fV4qgG H8HEtfWu+HDuQ04xPpkYizwcNzj7kpNseuRnpaJbuqYBK6CUAR3DiuOl0sGawIwL4bdG cMrA== X-Gm-Message-State: AA+aEWZD7Nfr3DqugMzZi0pts8Utw5vsW1rhbYnDKSys69EuS5e5+sFB Yrnk4C6nLwG3bDApe80L8zc= X-Google-Smtp-Source: AFSGD/X8O5p6DJ1S5N6a9aWCJQJYarwaGEjC1k3fNZlipD6XRB+rq0e8J7sPMcaBC6wqWcRF0BgUYw== X-Received: by 2002:a63:1412:: with SMTP id u18mr20374851pgl.247.1543145012487; Sun, 25 Nov 2018 03:23:32 -0800 (PST) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id x3sm47046179pgk.18.2018.11.25.03.23.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Nov 2018 03:23:31 -0800 (PST) Date: Sun, 25 Nov 2018 16:53:26 +0530 From: Nishad Kamdar To: Greg Kroah-Hartman Subject: [PATCH 01/26] Staging: fbtft: fbtft-core: Switch to the gpio descriptor interface Message-ID: <59606a4af6426cd9fa2c10b363156b568525b63e.1543142440.git.nishadkamdar@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Mailman-Approved-At: Mon, 26 Nov 2018 08:34:00 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This switches the fbtft-core to use GPIO descriptors rather than numerical gpios: Utilize the GPIO library's intrinsic handling of OF GPIOs and polarity. If the line is flagged active low, gpiolib will deal with this. Signed-off-by: Nishad Kamdar --- drivers/staging/fbtft/fbtft-core.c | 127 ++++++++++++----------------- drivers/staging/fbtft/fbtft.h | 22 ++--- 2 files changed, 61 insertions(+), 88 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index a2df02d97a8e..75ee16074126 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include @@ -24,7 +24,6 @@ #include #include #include -#include #include