Message ID | af953b8096c89f8248fabd7b728628005b5069eb.1543142441.git.nishadkamdar@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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 10D2A17FE for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 26 Nov 2018 08:35:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 028A0297A5 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 26 Nov 2018 08:35:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9F08297A7; Mon, 26 Nov 2018 08:35:09 +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 B19FC297A5 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 26 Nov 2018 08:35:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F27FA6E314; Mon, 26 Nov 2018 08:34:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by gabe.freedesktop.org (Postfix) with ESMTPS id 57F2589CB5 for <dri-devel@lists.freedesktop.org>; Sun, 25 Nov 2018 11:38:30 +0000 (UTC) Received: by mail-pg1-x542.google.com with SMTP id 80so4854076pge.4 for <dri-devel@lists.freedesktop.org>; Sun, 25 Nov 2018 03:38:30 -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=fdhjR1JE2FdUYSHtK0S6vtUqhtXtYzhy3g4QOnsuv0w=; b=Gn71aNDgrLNuPKWHMH5+9pVrOKjhOXwBIZ6blS0W45OrR3o9pCFL1cMtLVbPmusd7T /dEB/ZfUcJegSitwbaBS8zVwCw975BIa7RRdXwvaJuwbTSORyr+aDiLs0H6FjCEriX7q N/kaNGFB0N1NSjL2jreL4AHkTOWlxshDrjg03PkUBVjobLBrXuSwQ3nhjk4HDHDepkT6 UJhPy/K1J0iCb4IFfoiM2KJOOf3uZbPReYBsPhhsj5c7VEbj0rq3Mb7/UXLCusrrXuBX uEdxYz3aq42LfZJL8BKqFu8lr+RYXuTgzdkHgRIx139q74kOZASfwbklFycBxjaUiHXr 0G+Q== X-Gm-Message-State: AA+aEWboSnl5U0hv1ivv4of53oHd74rJWxxm72CT73rm1xx2d5/H2t+6 ddy8d4UNtml2fRbz7ikhK9w= X-Google-Smtp-Source: AFSGD/U0YD9CvTKmxyV0ci2jJKYQOoC/gqzCNHN7dSSKjtNCdAcZapdQmjw7JFjyR0gs74Om0tJyEg== X-Received: by 2002:a63:3287:: with SMTP id y129mr20734784pgy.337.1543145909898; Sun, 25 Nov 2018 03:38:29 -0800 (PST) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id r80sm5974464pfa.111.2018.11.25.03.38.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Nov 2018 03:38:29 -0800 (PST) Date: Sun, 25 Nov 2018 17:08:23 +0530 From: Nishad Kamdar <nishadkamdar@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Subject: [PATCH 18/26] Staging: fbtft: fb_bd663474: Switch to the gpio descriptor interface Message-ID: <af953b8096c89f8248fabd7b728628005b5069eb.1543142441.git.nishadkamdar@gmail.com> References: <cover.1543142440.git.nishadkamdar@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <cover.1543142440.git.nishadkamdar@gmail.com> 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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>, devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Staging: fbtft: Switch to the gpio descriptor interface
|
expand
|
diff --git a/drivers/staging/fbtft/fb_bd663474.c b/drivers/staging/fbtft/fb_bd663474.c index a58c514f4721..b6c6d66e4eb1 100644 --- a/drivers/staging/fbtft/fb_bd663474.c +++ b/drivers/staging/fbtft/fb_bd663474.c @@ -12,7 +12,7 @@ #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> -#include <linux/gpio.h> +#include <linux/gpio/consumer.h> #include <linux/delay.h> #include "fbtft.h" @@ -24,8 +24,8 @@ static int init_display(struct fbtft_par *par) { - if (par->gpio.cs != -1) - gpio_set_value(par->gpio.cs, 0); /* Activate chip */ + if (!par->gpio.cs) + gpiod_set_value(par->gpio.cs, 0); /* Activate chip */ par->fbtftops.reset(par);
This switches the fb_bd663474.c to use GPIO descriptors rather than numerical gpios. Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> --- drivers/staging/fbtft/fb_bd663474.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)