From patchwork Wed Apr 3 04:01:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10882695 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 2076D1708 for ; Wed, 3 Apr 2019 04:02:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08C9A28989 for ; Wed, 3 Apr 2019 04:02:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1492289A2; Wed, 3 Apr 2019 04:02:43 +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 918DF28989 for ; Wed, 3 Apr 2019 04:02:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726676AbfDCECi (ORCPT ); Wed, 3 Apr 2019 00:02:38 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35133 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbfDCEB5 (ORCPT ); Wed, 3 Apr 2019 00:01:57 -0400 Received: by mail-pl1-f195.google.com with SMTP id w24so939960plp.2; Tue, 02 Apr 2019 21:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iJNmAhM2XNyQoO7XUgJsBxESauSJO4qHq5kgj9WqMZU=; b=KvhzMUAR2lSW4esbyEYh5b4AsJIl8g7BeQPj98AU4WWMcL4wNMILvGwUp+cvFXv19i 6GUMKfW7YYTeWKt9t8ZrkjpERjfz95eYwjhslLA19flayKrpd2WU1QG+SdR3LX0EMK1I BTdMJb7ilpe41gOaYpbA0cgnxNUJS1ABHSohXp++WfHuTcYOJeNn0OMee38LBKkAOSsc Y9zJUdHe2SRrdWz6eWbtuSLv0r64mCGa6F7maJsNTvzFGQs8MYuNSJ81HrEyWvoNhmO5 LCLszeHOAlz1FT7ngANz7ze8+jMloroG++86ElnFHq3VMmgwXO0GV4o/m4OIiyYpXJE+ Bj2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iJNmAhM2XNyQoO7XUgJsBxESauSJO4qHq5kgj9WqMZU=; b=GbC9UMZxdjbduzlHWisfF77rz9mU2CMRPs7KZ9DESZmGA1A26y+6cy4FxM6dVxklhK WfnOswHA//ldnVvlq6Jfd6vR1r4+BOLZgl+WnXGmuyeZqcHPJaYdsgLqRQatfkGHAsfv QPxEaBheyaPsGFvg/M1wFS7XnT71uOA574iXijPTLFdhdUyz8dXe1Up4zGSDPyF35O14 6d3x7NJpl8365tI2KP0S7Oe7GN9GL+yhCMrPzQUZuwMQ54+zdr1tFOqmFNMP9fe7WP07 AcMVVN62ONX9TBjFpK0LUltAFHI0MkYYfmP2Ra34h3CmMaRkCIG6gnAjMKXADzhY7mKC 8YeQ== X-Gm-Message-State: APjAAAXhzVcMPZhorDzD0NJ1G+RLsiBuxgaEjoQJBTFd+ptlnd5rrtow xYwYpfqctJdub9PtULB7ZzqQIPF8 X-Google-Smtp-Source: APXvYqyrdZ271nYyFVZz+2ECRLdtBpFfP4Wa5aB4PcONyIjEHRUVzCkrDIhb2nYD9G9ppwl4+Rc+yg== X-Received: by 2002:a17:902:868e:: with SMTP id g14mr9916862plo.183.1554264116609; Tue, 02 Apr 2019 21:01:56 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id k14sm16278064pfb.125.2019.04.02.21.01.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 21:01:55 -0700 (PDT) From: Andrey Smirnov To: linux-spi@vger.kernel.org Cc: Andrey Smirnov , Mark Brown , Chris Healy , linux-kernel@vger.kernel.org Subject: [PATCH 05/12] spi: gpio: Drop unused pdata copy in struct spi_gpio Date: Tue, 2 Apr 2019 21:01:26 -0700 Message-Id: <20190403040133.1459-6-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190403040133.1459-1-andrew.smirnov@gmail.com> References: <20190403040133.1459-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Drop unused pdata copy in struct spi_gpio. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Mark Brown Cc: Chris Healy Cc: linux-spi@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/spi/spi-gpio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index 137f47e271dc..1cff30adc836 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c @@ -42,7 +42,6 @@ struct spi_gpio { struct spi_bitbang bitbang; - struct spi_gpio_platform_data pdata; struct platform_device *pdev; struct gpio_desc *sck; struct gpio_desc *miso; @@ -415,8 +414,6 @@ static int spi_gpio_probe(struct platform_device *pdev) spi_gpio->has_cs = !!pdata->num_chipselect; spi_gpio->pdev = pdev; - if (pdata) - spi_gpio->pdata = *pdata; status = spi_gpio_request(dev, spi_gpio, pdata->num_chipselect, &master_flags);