From patchwork Tue Jul 17 08:19:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 142120 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3369075ljj; Tue, 17 Jul 2018 01:19:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfYfuPlo098vTKBp/w/IuLqMDFCe5W+MlduQ9FG6CLqizEXINNpbV8c6Q7auGeVsHm7GCdJ X-Received: by 2002:a63:6441:: with SMTP id y62-v6mr640586pgb.240.1531815576070; Tue, 17 Jul 2018 01:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531815576; cv=none; d=google.com; s=arc-20160816; b=JoeT79zfSi3GopcmX94ERi1uaz1yacwha5SetAm3tiM8kP9ZT3/mjBhzoJM3WjGJii Z03aHS/58WoNQveBsUQx45Da+rbQuz2xNQ5lDrpiiOW9KXoPKwWPtozHe+eYqV+M1QJ0 f7j1Ok2D7eHM4GnmdZMHiNmkQNUVzHNWmmuam/wS4Lc2V9vW7jUoM8xONPrCNP7dojpF bxxDCCPhsyaa2MzprTix2OyWr0MqJaOrKSOCOG0uFCaT1fWj3c3wdCLL5zOO4kvffvMP 12778AZElwW+abjObDuJBjHao3RovjQEF3bDpMCiaEsHVoOu6iNinCEmhBo/bnvO8Lv6 WOtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=7X5uKyAYRxqFHQf10/7gnDcSoFz1ez2/IgY9TUY05HM=; b=cVHjAl0yvt9A0PAMf+meCbsM8mtg+E3Ou2dStFK9yu47wQJxn21Tbljh+umdVRL7Nd 1ynjvL2FFLV4hIAvi1OMIlB3Zj0v892tHyHo4Ns1M3IIx1VHAVs6Dt0kexv0p8SCfHdg Atg0+oBI56QKyAWwazAx+StVxBAVM+iHEolb1kLCUbH6sJrmzHHW4A9a9hWQoZDjVKOo JMv92sYN0I0YqyMxgy3Q0aGdoDLw7TkpZ1l2iieqEnvPMye+96//onPz10PQnby27hO+ Ww/QJ8dmin2QmdTRDHBLey8ghkcMHwrORsyHHS3lblRQe1sGlhsHU7L9q+80ElV7qeS/ YH1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ph8z3T/W"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r65-v6si381493pfe.298.2018.07.17.01.19.35; Tue, 17 Jul 2018 01:19:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ph8z3T/W"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729729AbeGQIu7 (ORCPT + 13 others); Tue, 17 Jul 2018 04:50:59 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42487 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729722AbeGQIu7 (ORCPT ); Tue, 17 Jul 2018 04:50:59 -0400 Received: by mail-pg1-f196.google.com with SMTP id y4-v6so124238pgp.9 for ; Tue, 17 Jul 2018 01:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7X5uKyAYRxqFHQf10/7gnDcSoFz1ez2/IgY9TUY05HM=; b=Ph8z3T/WTWdQC6pfi3H5IqeyCwyW3M6YmNBzVDxSE939ukSm8Eweriu8lQubhwGeJc PlTagM17slaiF1PfnnGlDIvSAbZ/LGZxUlTE6stMfReBVsK01IkFc6HgpHbTzwF9yJcs QYOPtpRmTC7iJPlInlT4Orjo+zlWc92QuE10g= 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=7X5uKyAYRxqFHQf10/7gnDcSoFz1ez2/IgY9TUY05HM=; b=ggbk8nIjn4wEwT2uMSYqrjDGASId+g0oywt6qnnOPsCUj3tHqVwZ66o8/LowKGwPVi 9T1e/MBycJlcPuCxhil21LUGYBKp7Pw7ojYqHiRlV1Ci+rvkqvWQOS8Pp3RkprKJjMnC u+UH40GaSbj2YXDKd/bhCQ6JoU+YqhAfiPeP1/+0lyxFr/3ORrJl1lzZq3DQmLlhH6Z6 xUTfabxzOmhXd+EryEHMvkN+YZWcNzzTFbq/7NKTJElMm0E+eeNH27/uzpczXNUX6siO a7RoDZ6+VkBSjepGDyltN1mRZsGBF+sGeuQ/Kyl7tdBOWH51eFM4uw0SjbNKKf1yUbCz 4XVQ== X-Gm-Message-State: AOUpUlHBiyMebYtABp/XyF/Jq6NMkjb/oEJXLQSP8CeDl0fPYV7SiwH0 A2rzE36aVVhG067A53llBSJRbQ== X-Received: by 2002:a62:dc1d:: with SMTP id t29-v6mr689443pfg.244.1531815574586; Tue, 17 Jul 2018 01:19:34 -0700 (PDT) Received: from localhost.localdomain ([106.51.22.240]) by smtp.gmail.com with ESMTPSA id z2-v6sm740263pgv.12.2018.07.17.01.19.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jul 2018 01:19:33 -0700 (PDT) From: Amit Pundir To: Greg KH , Stable Cc: Jonas Gorski , Mark Brown Subject: [PATCH for-4.9.y 3/5] spi/bcm63xx: fix typo in bcm63xx_spi_max_length breaking compilation Date: Tue, 17 Jul 2018 13:49:16 +0530 Message-Id: <1531815558-20002-4-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531815558-20002-1-git-send-email-amit.pundir@linaro.org> References: <1531815558-20002-1-git-send-email-amit.pundir@linaro.org> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jonas Gorski commit ccd0657c33b2c3701c5b14725284b7e671d3fb93 upstream. Fix compilation by renaming argument dev to spi as expected by the code. Fixes the following error: drivers/spi/spi-bcm63xx.c: In function ‘bcm63xx_spi_max_length’: drivers/spi/spi-bcm63xx.c:434:50: error: ‘spi’ undeclared (first use in this function) struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master); ^~~ Fixes: 0135c03df914 ("spi/bcm63xx: make spi subsystem aware of message size limits") Signed-off-by: Jonas Gorski Signed-off-by: Mark Brown Signed-off-by: Amit Pundir --- Cherry-picked from lede tree https://git.lede-project.org/?p=source.git drivers/spi/spi-bcm63xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index caa733ec405c..7ee4b04a4a11 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -428,7 +428,7 @@ static irqreturn_t bcm63xx_spi_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static size_t bcm63xx_spi_max_length(struct spi_device *dev) +static size_t bcm63xx_spi_max_length(struct spi_device *spi) { struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master);