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: 10696771 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 A6D9914BD for ; Sun, 25 Nov 2018 11:23:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 803BE28F6F for ; Sun, 25 Nov 2018 11:23:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DD2B28FE1; Sun, 25 Nov 2018 11:23:35 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 891F228F6F for ; Sun, 25 Nov 2018 11:23:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726023AbeKYWOY (ORCPT ); Sun, 25 Nov 2018 17:14:24 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35871 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbeKYWOY (ORCPT ); Sun, 25 Nov 2018 17:14:24 -0500 Received: by mail-pg1-f196.google.com with SMTP id n2so4850357pgm.3; Sun, 25 Nov 2018 03:23:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3nwfMhrOFoCLRdJ2gF2RPDC00oQ9a06MU5Aupz66xdc=; b=GTFGzaFcglSMXtQcSyouTewxgAB+byZpI6Z1PuQh751An4pd7JwQFiK1c892sVHmKY kGySASmx23WyszUjfhNO9T0UEzVV02HMu77aOnyu65FBaoNLheLWmczjZVobnIdR7IfE xlEhCEwbwWas+BrVqjYToPo3HgX/fFWqBzWJsz0tSl67WJ/vmDlEWkeB++g6+3xEg5Kd Oh+rRNKe0YmyNd3tdCWfCnPjl4mMZPZP6U/iBCFuSDwn8BTMgl809/1vkRWWKxrHj3bg oEI8rYN67WXDGFx/GA0baSkaw6uIxP0wKT8NmMy1ElJGsbGiL6Pd5khwAXUxsWIVqY16 lpFw== 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=hHFTpiFspc+iJ6KPFPRNnfYdLqQu+lCjpbYSWu3BDUW3GcOcStYVCg2+KXbdwkadNA RJtCgcDzyLCZQDgUGcjfgXBLcyC8tMOqk78UjSXkZ0c87GDDq0VstL+0ZNfYiijQwD6P GYTXKu0zglWsx5JRqYk4VXMuKrB42/KInM+xW2mAeIvSLz11Pk2nUIUp1q0lJaSCL4Yc xXTcDSem80tzapYOctpUVMGP+8+rXtmRb+vPhMApOT0rE733waVp85PVgem2FaJP0f37 3RlO6X+DtgyFKesSeBgRkphl5CTEKOKJLM6Hn/zbM8aXj9ymK7OmGKz2aK8JfblswjN0 PtwA== X-Gm-Message-State: AA+aEWYIyMD7z0D3fhqOohi67RyFMTWPLouuLvsEtI6kNySl/oHaYAz4 39bP8S3fh+XVuRApJHXWyt8= 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 Cc: Thomas Petazzoni , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org 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) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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