Message ID | d82350e345de07d6dee448a3199cfa0f0b568171.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 F269215A7 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 26 Nov 2018 08:34:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E219D2979A for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 26 Nov 2018 08:34:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D65842979C; Mon, 26 Nov 2018 08:34:14 +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 96B1F2979A for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 26 Nov 2018 08:34:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 443596E27A; Mon, 26 Nov 2018 08:34:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by gabe.freedesktop.org (Postfix) with ESMTPS id CCAFF89CB5 for <dri-devel@lists.freedesktop.org>; Sun, 25 Nov 2018 11:29:56 +0000 (UTC) Received: by mail-pl1-x643.google.com with SMTP id b5so12521423plr.4 for <dri-devel@lists.freedesktop.org>; Sun, 25 Nov 2018 03:29:56 -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=JrmUXIhEdvyW3/PDf9Qjnqq6eYljvs81GxqFgkMOUjo=; b=naJell8+M2bjQwRzgouik77z5vaEF9j8T1tpiQ0CbxI4c0Mf+/8U/dW8V+JE6I60su PM0X/3+oAfjy7oAU85BZElJq+1eTqWRASE09/6eqT8mlblXpxYuc3YhXiAD0JxUvxmhe S/UL5oKITFBtmXjOSaoaoeIxQ8gwcZyVr7a/mdikEaHIfZT/PbLElmZQPucE40zd0rEw xBq6401ZWXCsR2rAZR4CEgluof2Djpv+Bal6OnqwstCjhacGOpAjSXaIYgKc3I7uooDZ JvYkA+sVuwYLacVG/8fVnkQzeBr7CCOrwm0CuHJ3Hegf123hc0+RDkPgq0K7c5kPaFkr zfmw== X-Gm-Message-State: AA+aEWbGMesgG3sYNIrCilX/Fqv+paBwoMaGcQhAzeDCRtdEl3EG5Kt/ dJY2HhIyj0e86TcHGG2CPPvLmajR3T0WoQ== X-Google-Smtp-Source: AFSGD/UBug36aWCimuHDrNIAWO1p89jYRZXLbbC/WpcJniG1zzme4nBc/B7JfTRjZV89NiJBX3s0jQ== X-Received: by 2002:a17:902:4c08:: with SMTP id a8mr23380200ple.74.1543145396360; Sun, 25 Nov 2018 03:29:56 -0800 (PST) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id d2-v6sm16946778pfj.106.2018.11.25.03.29.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Nov 2018 03:29:55 -0800 (PST) Date: Sun, 25 Nov 2018 16:59:50 +0530 From: Nishad Kamdar <nishadkamdar@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Subject: [PATCH 08/26] Staging: fbtft: fb_uc1611: Switch to the gpio descriptor interface Message-ID: <d82350e345de07d6dee448a3199cfa0f0b568171.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_uc1611.c b/drivers/staging/fbtft/fb_uc1611.c index dfaf8bc70f73..65681d0fe200 100644 --- a/drivers/staging/fbtft/fb_uc1611.c +++ b/drivers/staging/fbtft/fb_uc1611.c @@ -10,7 +10,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> @@ -251,7 +251,7 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len) } break; } - gpio_set_value(par->gpio.dc, 1); + gpiod_set_value(par->gpio.dc, 1); /* Write data */ ret = par->fbtftops.write(par, par->txbuf.buf, len / 2);
This switches the fb_uc1611.c to use GPIO descriptors rather than numerical gpios. Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> --- drivers/staging/fbtft/fb_uc1611.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)