Message ID | 1eb3d0f4ef62a3e709c9057d1d0e367cc56c43e0.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 5BF1513AD for <patchwork-linux-fbdev@patchwork.kernel.org>; Sun, 25 Nov 2018 11:39:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 455D229B71 for <patchwork-linux-fbdev@patchwork.kernel.org>; Sun, 25 Nov 2018 11:39:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 364DB29B70; Sun, 25 Nov 2018 11:39:51 +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 CEF7529B70 for <patchwork-linux-fbdev@patchwork.kernel.org>; Sun, 25 Nov 2018 11:39:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726062AbeKYWan (ORCPT <rfc822;patchwork-linux-fbdev@patchwork.kernel.org>); Sun, 25 Nov 2018 17:30:43 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41481 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbeKYWan (ORCPT <rfc822;linux-fbdev@vger.kernel.org>); Sun, 25 Nov 2018 17:30:43 -0500 Received: by mail-pl1-f195.google.com with SMTP id u6so12519371plm.8; Sun, 25 Nov 2018 03:39:49 -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=f+pv8tzgPNpJdv5oYEQcNenqbg8M3Qth8oGrTAJrgcc=; b=ihTMQzhtmKVOWt8+xAIneJLMlGTmWZZGPydNYw9CNFNxUXoWQ0aUD+7cfuJuhYX8H0 ftt3x6pCl1lqY/DE1pH3XUzzdlkKIkjmAdQQzAG2jQR9BT2XfGVTM/5vYRmr2pmBzvK6 70Rf5kU+ZEN1eQ3/FQPJGN47tH2M0tBdMJA9+cM0hCl9MzG1iA9haqAh7CH7+xamLwty SRooL/4NCsXLiHGd1o6QZMM9YJo9wKZrt9YsWCKWutge65+FDaFXHE/wihU8pZOZLrOd 3gfUkMFV0dGrihxOsAc9Iep2ZkC6mdh96HEei/FywzbIsrYs6jfEN9X2rfYL4PdCVhH0 W9sw== 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=f+pv8tzgPNpJdv5oYEQcNenqbg8M3Qth8oGrTAJrgcc=; b=FWYUzMoB5NZV+uDMzcHYRK9Q2iZlhBTjAuGyyoW+gfLkUF7Eroa0tYH22lwvmzPVYG NlC7PagSBIOQPYV6RzzCLOA0R9R6Sh/T9Ch9sK8dsR2dZmFfUHeSl5+l/rWUcwYWBqoE M4gCEayQtioPJOoTZxfPq20ZyjMpBypqFlCidNVscKp5DyxsjEe5ADMTf7IUVcT3Rbre MpxZAktLCx2LyW8SI20O5GqTnw8RHbE1Pce9BNGgtVkzfy8LgpSngeZ3LEudi9iodXAR XSkfya8CXOZybgGkmXgarQlra6hlXNH96Wwzk1Qh05KdJVZHtRi7edUlD5CMVMW3AGJL KGLg== X-Gm-Message-State: AA+aEWZEvEEl8SYjqeUp7VppL7MxU21PE7JZnoYmLTYXSf1E5rLBRRlG 3pAuyj64iy6Ndf1108fzHOo= X-Google-Smtp-Source: AFSGD/Wmcl3S1P3YteVP8ZYwUrSqQXxSd2WzGTmBcVW6dujx64E3DXivujdK/3D1wcFrgs7GqO2hOg== X-Received: by 2002:a17:902:6848:: with SMTP id f8mr22676712pln.300.1543145989552; Sun, 25 Nov 2018 03:39:49 -0800 (PST) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id e123sm60598760pgc.58.2018.11.25.03.39.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Nov 2018 03:39:49 -0800 (PST) Date: Sun, 25 Nov 2018 17:09:44 +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 20/26] Staging: fbtft: fb_ili9163: Switch to the gpio descriptor interface Message-ID: <1eb3d0f4ef62a3e709c9057d1d0e367cc56c43e0.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_ili9163.c b/drivers/staging/fbtft/fb_ili9163.c index 86e140244aab..d609a2b67db9 100644 --- a/drivers/staging/fbtft/fb_ili9163.c +++ b/drivers/staging/fbtft/fb_ili9163.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/delay.h> #include <video/mipi_display.h> @@ -77,8 +77,8 @@ static int init_display(struct fbtft_par *par) { par->fbtftops.reset(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 */ write_reg(par, MIPI_DCS_SOFT_RESET); /* software reset */ mdelay(500);
This switches the fb_ili9163.c to use GPIO descriptors rather than numerical gpios. Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> --- drivers/staging/fbtft/fb_ili9163.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)