Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2951095imc; Wed, 13 Mar 2019 05:26:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYoF6vZGgCqdidJZASDYGiYEAL8KYgJXT+Wj2j96rbA14apD08r1wdBI5ypVOZxwfr/BD6 X-Received: by 2002:a62:5c4:: with SMTP id 187mr43424187pff.153.1552480000473; Wed, 13 Mar 2019 05:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552480000; cv=none; d=google.com; s=arc-20160816; b=E0YlT9quJ3SdCTQVFasdG+OvVeaWNNsiea0o+h8d7RUN751+cF072O+oLKQTrJTNnM G12Ama95uk69nS938qWOyrQtT2+4SxsaosoO2yZKaeLXZbXTLhunIUiragICPGR27eUP P2VA1PofXEDgvLQAXrxc6/U6HIAfMzBeyBEU839GKXUBuNHPJ8ApDDFaPG7EF7dVqx4F genakjlB0OzXqpfEXRLZR3Bdj6goP2h9SgKhKmMgcgUOk6d1jz2efCbIs42KcSrISwOW TDhec0L9pmsMSP7q/PiW7NLk88lhLH1f4prQrPK9cfKUi6U0Pa3Wu7RbvbJogGfiZdgi R3Uw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=JlBsHnptz3zRzAnNrHOWapsTdjSs3bPM60FFJR8pDRI=; b=cLOiDI2uXy4fFJ/p1V/qRR9+AGqg3JUkvSJR3N7J8PNpBuf9LNJzCrq22aABvwFtCN qJO/r9MsOcL7Eld4HIVBPl10MpNcQbEmNDTJiMOj4JCngIIs8wpbWrWelrFS+5H6cFrn WodbxOHkoK67crv18wHEVSVrbo1U7Xk+mkRtZAXYQhhUP0AUu5Qfnt/61cztdhJZzize VqQYo8pSCNafEnI7f2EIqn7NcGBv8PLgIwv4iHZ5NyvY7vHtC9Z+Y2cLhdVFsPDLzQbC u1gWLvdK0kMWc18Zml4tri/LbLiYg/QS9yEIQfeq19fbmF/00y7zkDN2NfcCziYZBnEV jeEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=in4OR4yr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si9581441pgs.387.2019.03.13.05.26.23; Wed, 13 Mar 2019 05:26:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=in4OR4yr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726575AbfCMMZr (ORCPT + 99 others); Wed, 13 Mar 2019 08:25:47 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:44690 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbfCMMZr (ORCPT ); Wed, 13 Mar 2019 08:25:47 -0400 Received: by mail-lj1-f194.google.com with SMTP id q128so1356697ljb.11 for ; Wed, 13 Mar 2019 05:25:46 -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:mime-version :content-transfer-encoding; bh=JlBsHnptz3zRzAnNrHOWapsTdjSs3bPM60FFJR8pDRI=; b=in4OR4yr0odatAAOVT2sdwzdUrJH++Lp9FBZRaxQguafFvke4lE6A0LiS7eHil5/gz 3y8hbp1WCGPg+J1Nkvh7gJkGC9tqtNBTESuOTBexmp1hJiP+uKySfJUU2k1YNGo4Y2c3 PrfgjYRe/ws5yIxgN46fWIjRZcUJnjo+6DAfSg3i0WdxfxYlu/qww/NTR+MVF3Jkoagz +hqPJ+Pfyw/2KBs5zpPZZcX7cnseH6KXnkhITXaUPj+Y6uQDRZegQRzGZvHdQ+lk1XGW LVHgeqMP9QK+e2pASheUUNwAj+v98SGxe+jykC134BZugiNb6DYnf9lDhiYTZ7uBnr0S PeqQ== 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:mime-version :content-transfer-encoding; bh=JlBsHnptz3zRzAnNrHOWapsTdjSs3bPM60FFJR8pDRI=; b=ZAHNtJ3oSILIA3p/TJGHPO32d0d5t4PGYZ87lLhbH8/9tlOFmFSVot12mMw1AKcGBv 4u13d0zJYBuXtcd6XfeDPLl8OQHXUqSGTsjpnZW3qd1ueqSG4VI0JrDdqg6tYoLIkJ4Q z4ggt7MBFkdYV174PIyxu4tDgpMgCK8P3KdZG1T+15ywojI15RSZoS2iU28aFf9y1xYv Zh01rZ2ZJ9JQBrlY7reSHjKs9fiBYsQORAoEtVJ1k4THF6P47B5xH5QqtXaUAg3oRDLq 5/lA3nMoSXIXQVnYbChN/P8gPg37T6JV/DYIJM0XU2ghPlR1Zm98nbK299oH9Yiaspo3 LF4w== X-Gm-Message-State: APjAAAXJcI9ZwFcadlay9hOjljnRTHQmq0GbmzvkUXaaHEgopxi6o+rq T0Ybsbk7US2XyCBHwDYpiQATjSGXYVI= X-Received: by 2002:a2e:b1d1:: with SMTP id e17mr23335335lja.120.1552479945215; Wed, 13 Mar 2019 05:25:45 -0700 (PDT) Received: from lamport.payandsurf.com ([192.36.80.8]) by smtp.gmail.com with ESMTPSA id i185sm1953076lji.81.2019.03.13.05.25.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Mar 2019 05:25:44 -0700 (PDT) From: Armando Miraglia X-Google-Original-From: Armando Miraglia To: neil@brown.name Cc: Armando Miraglia , gregkh@linuxfoundation.org, matthias.bgg@gmail.com, sr@denx.de, sankalpnegi2310@gmail.com, gch981213@gmail.com, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: mediatek: Attempt to address style issues in spi-mt7621.c Date: Wed, 13 Mar 2019 13:24:04 +0100 Message-Id: <20190313122403.248873-1-armax@google.com> X-Mailer: git-send-email 2.21.0.360.g471c308f928-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Running Lindent on the mt7621-spi.c file in drivers/staging I noticed that the file contained style issues. This change attempts to address such style problems. Signed-off-by: Armando Miraglia --- NOTE: resend this patch to include all mainteners listed by get_mantainers.pl. drivers/staging/mt7621-spi/spi-mt7621.c | 27 +++++++++++++------------ 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c index b509f9fe3346..03d53845f8c5 100644 --- a/drivers/staging/mt7621-spi/spi-mt7621.c +++ b/drivers/staging/mt7621-spi/spi-mt7621.c @@ -52,14 +52,14 @@ #define MT7621_LSB_FIRST BIT(3) struct mt7621_spi { - struct spi_master *master; - void __iomem *base; - unsigned int sys_freq; - unsigned int speed; - struct clk *clk; - int pending_write; - - struct mt7621_spi_ops *ops; + struct spi_master *master; + void __iomem *base; + unsigned int sys_freq; + unsigned int speed; + struct clk *clk; + int pending_write; + + struct mt7621_spi_ops *ops; }; static inline struct mt7621_spi *spidev_to_mt7621_spi(struct spi_device *spi) @@ -303,7 +303,7 @@ static int mt7621_spi_setup(struct spi_device *spi) struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); if ((spi->max_speed_hz == 0) || - (spi->max_speed_hz > (rs->sys_freq / 2))) + (spi->max_speed_hz > (rs->sys_freq / 2))) spi->max_speed_hz = (rs->sys_freq / 2); if (spi->max_speed_hz < (rs->sys_freq / 4097)) { @@ -316,9 +316,10 @@ static int mt7621_spi_setup(struct spi_device *spi) } static const struct of_device_id mt7621_spi_match[] = { - { .compatible = "ralink,mt7621-spi" }, + {.compatible = "ralink,mt7621-spi"}, {}, }; + MODULE_DEVICE_TABLE(of, mt7621_spi_match); static int mt7621_spi_probe(struct platform_device *pdev) @@ -408,9 +409,9 @@ MODULE_ALIAS("platform:" DRIVER_NAME); static struct platform_driver mt7621_spi_driver = { .driver = { - .name = DRIVER_NAME, - .of_match_table = mt7621_spi_match, - }, + .name = DRIVER_NAME, + .of_match_table = mt7621_spi_match, + }, .probe = mt7621_spi_probe, .remove = mt7621_spi_remove, }; -- 2.21.0.360.g471c308f928-goog