From patchwork Sun Nov 25 11:35:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishad Kamdar X-Patchwork-Id: 10697805 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 DF5C115A7 for ; Mon, 26 Nov 2018 08:35:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D00B4297A5 for ; Mon, 26 Nov 2018 08:35:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C44BD297A7; Mon, 26 Nov 2018 08:35:12 +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 8699E297A5 for ; Mon, 26 Nov 2018 08:35:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6791C6E31E; Mon, 26 Nov 2018 08:34:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8573C89CB5 for ; Sun, 25 Nov 2018 11:35:20 +0000 (UTC) Received: by mail-pg1-x542.google.com with SMTP id 80so4852510pge.4 for ; Sun, 25 Nov 2018 03:35:20 -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=PJodRdvSzkZ9Z2SXB+EE3wodES1ao6gn968M8LM2ZEk=; b=JUhvNBwkUsvSXTX3MNdbHWeQ7tbeHgr/MYAQXGBlxXmdfi4rNKtnW/qC0SO1j03Ngs aXEBukSGkBacTxhHUIKui8VAhf3WsqBGkl1Z163zUBYVXrT301eoJa+CWaZ31iaeQEA7 0LEwqc2PjflNYC1RdJItfv1tpxnRaE2N6K6g+50YH+6Rokcx8TrESw0SJ/QGPcQA9KIt 9gSHofaoLK/2DIUK3vHaQARgLrCkeV6Vy8uE3GkrDiwpzZdv5Jy2gCsxCIhK3gMJ+bvE ezZfzSBgBDLjLe6zC5pHEpjq09tUjs5dNcdylhyk+u117eqNt4bTSMD2d3t/ZtpasYYO ubcg== X-Gm-Message-State: AA+aEWbTJznV0KiZsABMoYy3xnNMm8euxkDjev/XxQhwWdfLhoatKyHw LBz3ZY2xtHJGZdESEf4RQXrxCo+ka6tlsw== X-Google-Smtp-Source: AFSGD/WCCxUKw2jkTOVomDVEZLn7C6caHH2GcffrAOo3/+lzsFf7P+rd3xjXoiQ6WbwdRVUx9yBtKA== X-Received: by 2002:a63:6782:: with SMTP id b124mr20956174pgc.151.1543145720064; Sun, 25 Nov 2018 03:35:20 -0800 (PST) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id z8sm93352847pgz.53.2018.11.25.03.35.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Nov 2018 03:35:19 -0800 (PST) Date: Sun, 25 Nov 2018 17:05:14 +0530 From: Nishad Kamdar To: Greg Kroah-Hartman Subject: [PATCH 13/26] Staging: fbtft: fb_ili9325: Switch to the gpio descriptor interface Message-ID: <8508af894651d71df497be698d4e08697ec86fc6.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) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This switches the fb_ili9325.c to use GPIO descriptors rather than numerical gpios. Signed-off-by: Nishad Kamdar --- drivers/staging/fbtft/fb_ili9325.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fb_ili9325.c b/drivers/staging/fbtft/fb_ili9325.c index 2cf75f2e03e2..b090e7ab6fdd 100644 --- a/drivers/staging/fbtft/fb_ili9325.c +++ b/drivers/staging/fbtft/fb_ili9325.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include "fbtft.h" @@ -85,8 +85,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 */ bt &= 0x07; vc &= 0x07;