From patchwork Sun Nov 25 11:34:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishad Kamdar X-Patchwork-Id: 10696793 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 211195A4 for ; Sun, 25 Nov 2018 11:34:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02744293D9 for ; Sun, 25 Nov 2018 11:34:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA4D7294BC; Sun, 25 Nov 2018 11:34:36 +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 9E0DC293D9 for ; Sun, 25 Nov 2018 11:34:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726083AbeKYWZ2 (ORCPT ); Sun, 25 Nov 2018 17:25:28 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35999 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbeKYWZ2 (ORCPT ); Sun, 25 Nov 2018 17:25:28 -0500 Received: by mail-pf1-f193.google.com with SMTP id b85so5215720pfc.3; Sun, 25 Nov 2018 03:34:35 -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=V07j8avogvVE+TwyHfyJteFOP2IHXyhYWzW+KJE497o=; b=VX31o2eoDtD9i+134Vg9NudtNrqdCOD6s4c243widj962upNIewXXWI+TZxaB3Hhwc YYbDihRXLbeWAZF8iVLc5dk9ybJkjOjbQBd9qE1XZXRhcI/7xnGi5/yoIjpH70tXE59x aJWcJyAswSdTjHp4yZky7n/vhCZcGcsY5w6WpIhZ6yMiO4MpVSzsL9RiOC+dWalG/Yqj gLxoqx3Hhi9QEDCwUgB1MT8kWednrKgtQPLhfoysEk2yTHuWo6mWoG7Ob2xl+jojANqZ OjAetBpIZCq2oEyIqigNZIHwrP+CCm2lIIjwnHJ4ygr0WfEMB9alRVw5Iw43TEvn1H1E ZGJA== 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=V07j8avogvVE+TwyHfyJteFOP2IHXyhYWzW+KJE497o=; b=nKtaclBG372UeAVOIXomvJKS1liIPyC+7wQ8xPlIPAehJZiwK0glE60vXVLY1LmKIU A3iKmsicRhuahkJDWuu2zzQdQBRDg9U24625Mk/pcK+yYBC3+a8gcaUdggHCnvjGqzCo IeFfaQ/UhsMmCrHdPdNVgOiyGCBiwP7MJJBqrYp7I5+tirx/nTNSm3+NiALc51WuWMTu kGCFC0d2lDmw6z9p0ZRNNDnxPeCjWBsOTrl7x+hUCxZ6Szhx/2Es+fnfgGnacOlYyPgq xIChHJqPJfmSi7IZo8YTNViIYfifSGXAmqnuourXg+jsv78EUwKeWIqdQ6ENyqdpqjRW eSYA== X-Gm-Message-State: AA+aEWa/wpJx35dkrz7LuvUkBxihXeXPtls2uijHnCwMqHF4j4erEO9m s4Ukbubewp5WXKdqrIlnFno= X-Google-Smtp-Source: AFSGD/UAPP4faYCrtwTFcw8O48NebDB3LzYzpnv2msJhmUCRCj2A6gc/rZXpecqnceX8hX7CZnsRXQ== X-Received: by 2002:a63:db02:: with SMTP id e2mr20923571pgg.419.1543145674900; Sun, 25 Nov 2018 03:34:34 -0800 (PST) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id 34sm93711567pgp.90.2018.11.25.03.34.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Nov 2018 03:34:34 -0800 (PST) Date: Sun, 25 Nov 2018 17:04:29 +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 12/26] Staging: fbtft: fb_ssd1325: Switch to the gpio descriptor interface Message-ID: <618a646df1ffad7401b794ab23c2e7b009ae7d6d.1543142441.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 fb_ssd1325.c to use GPIO descriptors rather than numerical gpios. Signed-off-by: Nishad Kamdar --- drivers/staging/fbtft/fb_ssd1325.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fb_ssd1325.c b/drivers/staging/fbtft/fb_ssd1325.c index f974f7fc4d79..8a3140d41d8b 100644 --- a/drivers/staging/fbtft/fb_ssd1325.c +++ b/drivers/staging/fbtft/fb_ssd1325.c @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include "fbtft.h" @@ -35,7 +35,7 @@ static int init_display(struct fbtft_par *par) { par->fbtftops.reset(par); - gpio_set_value(par->gpio.cs, 0); + gpiod_set_value(par->gpio.cs, 0); write_reg(par, 0xb3); write_reg(par, 0xf0); @@ -155,7 +155,7 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len) } } - gpio_set_value(par->gpio.dc, 1); + gpiod_set_value(par->gpio.dc, 1); /* Write data */ ret = par->fbtftops.write(par, par->txbuf.buf,