Message ID | 9aa3e142296156dd54a199774b3e35fe7762712b.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 4FA0417FE for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 26 Nov 2018 08:35:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FFA8297A5 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 26 Nov 2018 08:35:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 348AA297A6; Mon, 26 Nov 2018 08:35:04 +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 EDF1D297A8 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 26 Nov 2018 08:35:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7DEBE6E2DF; 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-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id 553C489B0B for <dri-devel@lists.freedesktop.org>; Sun, 25 Nov 2018 11:37:14 +0000 (UTC) Received: by mail-pg1-x544.google.com with SMTP id d72so4840123pga.9 for <dri-devel@lists.freedesktop.org>; Sun, 25 Nov 2018 03:37:14 -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=6D7IR6TlRx2eRF8FI6Y8TfnnyTdNduDtNJBidXF2B8I=; b=OUCgBEX/Qu9f6kGWf5BNSQd2MnDh/UfYCqz0RHrvY2XT8EfHPcDI2PDjltHC3DeNmG wk1/suvhLb2sIcTNk3dsTxe3h1v4HzJx7cwug5ecrZ4jC8y0dLtIwC4SD1x3qSgqJLoD XmBPPYQucYMN8c79LwGu7fbH8KAW0cybkxM27JKHm8F2n/cBmn/Cz+8AzHU+hvVuANxE l/1gX3dimvmPrYzmn6Wr50915Wsh4CKUa7SDpRcHKsQ6P1enV4ZsoPRfLrH+4JGMBSEu TseJtaAYgj0YLpVxK3+//MjOgiL+/WId9IFP+1j9kkTe3Q15ekUBLMEEIRWG5m1NqHzQ vAfg== X-Gm-Message-State: AA+aEWaVbKC1qopjcAkyCC3DyMpBg6hpjRERW90LiZ6K+TNHdOufGvJY iH1TaHnf8FwjpkQ9R5ts6N0= X-Google-Smtp-Source: AFSGD/UAc+raqzdgNl8L24sxnguAts7suDYQs/AyLZGp4afPAH7z0/kEs6HlcTwioNtsl4lopeJFPw== X-Received: by 2002:a63:1d1d:: with SMTP id d29mr19424260pgd.49.1543145833923; Sun, 25 Nov 2018 03:37:13 -0800 (PST) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id l16sm57473850pfg.161.2018.11.25.03.37.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Nov 2018 03:37:13 -0800 (PST) Date: Sun, 25 Nov 2018 17:07:07 +0530 From: Nishad Kamdar <nishadkamdar@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Subject: [PATCH 16/26] Staging: fbtft: fb_uc1701: Switch to the gpio descriptor interface Message-ID: <9aa3e142296156dd54a199774b3e35fe7762712b.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_uc1701.c b/drivers/staging/fbtft/fb_uc1701.c index 0a3531d6eb39..e4ccc73868a7 100644 --- a/drivers/staging/fbtft/fb_uc1701.c +++ b/drivers/staging/fbtft/fb_uc1701.c @@ -11,7 +11,7 @@ #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> -#include <linux/gpio.h> +#include <linux/gpio/consumer.h> #include <linux/spi/spi.h> #include <linux/delay.h> @@ -136,9 +136,9 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len) write_reg(par, LCD_PAGE_ADDRESS | (u8)y); write_reg(par, 0x00); write_reg(par, LCD_COL_ADDRESS); - gpio_set_value(par->gpio.dc, 1); + gpiod_set_value(par->gpio.dc, 1); ret = par->fbtftops.write(par, par->txbuf.buf, WIDTH); - gpio_set_value(par->gpio.dc, 0); + gpiod_set_value(par->gpio.dc, 0); } if (ret < 0)
This switches the fb_uc1701.c to use GPIO descriptors rather than numerical gpios. Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> --- drivers/staging/fbtft/fb_uc1701.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)