Message ID | e1eff99fabe75d10908fe03cc646edb3ad0f6c45.1543142441.git.nishadkamdar@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fbdev-owner@kernel.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 7F4BE13AD for <patchwork-linux-fbdev@patchwork.kernel.org>; Sun, 25 Nov 2018 11:37:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67E6C29814 for <patchwork-linux-fbdev@patchwork.kernel.org>; Sun, 25 Nov 2018 11:37:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 598E629A6A; Sun, 25 Nov 2018 11:37:57 +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 E997429814 for <patchwork-linux-fbdev@patchwork.kernel.org>; Sun, 25 Nov 2018 11:37:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726409AbeKYW2p (ORCPT <rfc822;patchwork-linux-fbdev@patchwork.kernel.org>); Sun, 25 Nov 2018 17:28:45 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39826 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbeKYW2p (ORCPT <rfc822;linux-fbdev@vger.kernel.org>); Sun, 25 Nov 2018 17:28:45 -0500 Received: by mail-pg1-f193.google.com with SMTP id w6so4850764pgl.6; Sun, 25 Nov 2018 03:37:51 -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=qCi7oDyTc58B0rVilB+8XFSOvbyYBw9Cm4Az3esZHqc=; b=Ssn4twpdv27HsAjCF4CyrPIjS3wPV88q3//C1j8duhRC5Pki3vvpM9UMP9B1n1zJfz SDYTO66SEHBE5Myr6sehrTL6HDstPELNH+9Wc7EXKoDgaJtvVRSXcu85og8Rd2oy9JMX n4iDG7SiISsi33brRDc2WcW23WrcGX6lQsPEbX0V2JyYQehmnDwqwT0gXUsbCedjcaRX BKypX+asEEEjfS9dMWVDmD06n3VU3JGYhPky1XXYHIc8SPhTvTE1itxj4aESSCGxKOlj V8Gtbp/WLxZsvR7ymPwwOKvqXKMh8nRMYAXCAc/Xtxr4RCbm2f99epYPom8pQpXHai+U Vkjw== 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=qCi7oDyTc58B0rVilB+8XFSOvbyYBw9Cm4Az3esZHqc=; b=dvPb+MooFWxFaqwjLaM4r0PpQHJaGZA/JpOSb3XA9u6zzpGXWkSpQ7e7IFgFBSN2hb NIuVsZmxRxhUsZQLWCAZeYrPZAF2jvpU2F4zQIpma34dMRNFpWXL6BtDgsp7xz2ufTzU sf9ZOimQdCS8WQebZfmii+NEswQT/HzANxoxtHLfQzYUns2gqaIwjLzFiy/LVj0sgdLm nO6qqPh3c8Ohq3Geb7jxon21YMxk0Ezl+dOqqNNfod2BkNMXCck5hU+ct67uhK99soys Un0Fy4HDTZrvXCGJRp4NO03rfBbqEkc8Z0ucsEJvSXxG0c9cgeBAmAbhbqkw/rXZhR29 x4ZA== X-Gm-Message-State: AGRZ1gI/uSyWu3dhpilf1AHDYxc3vUdQ9R8lipudEKuKqeQ1xXj2z3f3 2egmwFCySJQ8JJKWMxUzJ66T67xYWrLVmg== X-Google-Smtp-Source: AJdET5emgc3v7+dHAcuiMoBw6XJ+rep9hmpClD5NcY5tXn64ke7Fgw+vEiujc1o5cGttxvC4TD6r7A== X-Received: by 2002:a62:2781:: with SMTP id n123mr23705936pfn.138.1543145871517; Sun, 25 Nov 2018 03:37:51 -0800 (PST) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id p15-v6sm100361867pfj.72.2018.11.25.03.37.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Nov 2018 03:37:51 -0800 (PST) Date: Sun, 25 Nov 2018 17:07:45 +0530 From: Nishad Kamdar <nishadkamdar@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH 17/26] Staging: fbtft: fb_ssd1306: Switch to the gpio descriptor interface Message-ID: <e1eff99fabe75d10908fe03cc646edb3ad0f6c45.1543142441.git.nishadkamdar@gmail.com> References: <cover.1543142440.git.nishadkamdar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <cover.1543142440.git.nishadkamdar@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fbdev.vger.kernel.org> X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Staging: fbtft: Switch to the gpio descriptor interface
|
expand
|
diff --git a/drivers/staging/fbtft/fb_ssd1306.c b/drivers/staging/fbtft/fb_ssd1306.c index 50172ddd94ae..d7c5e2e0eee9 100644 --- a/drivers/staging/fbtft/fb_ssd1306.c +++ b/drivers/staging/fbtft/fb_ssd1306.c @@ -8,7 +8,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" @@ -190,7 +190,7 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len) } /* Write data */ - gpio_set_value(par->gpio.dc, 1); + gpiod_set_value(par->gpio.dc, 1); ret = par->fbtftops.write(par, par->txbuf.buf, xres * yres / 8); if (ret < 0) dev_err(par->info->device, "write failed and returned: %d\n",
This switches the fb_ssd1306.c to use GPIO descriptors rather than numerical gpios. Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> --- drivers/staging/fbtft/fb_ssd1306.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)