From patchwork Wed Mar 13 11:27:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armando Miraglia X-Patchwork-Id: 10850991 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 4538417DF for ; Wed, 13 Mar 2019 11:28:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24F7A29B69 for ; Wed, 13 Mar 2019 11:28:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18C0929B6E; Wed, 13 Mar 2019 11:28:05 +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=-1.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,FSL_HELO_FAKE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BC55029B6E for ; Wed, 13 Mar 2019 11:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: MIME-Version:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=youbuoLDQpsWdtRT8gluKfzz+x2AyuGKtR1VEmm2/z0=; b=KFA MlTowQAe7aMY4Gz7HX5ipmXyEvfEDyNPWYIX2ha3yTfMiQ09w09zG3IDJvrO0XRhh+Kv+vXCYPHrb Om6zs7V1pNQRAEKEGe4UnJvNSuS//clD0V7jzbcp2qoVElJ1lI1fOWx7dB4cyhrTTzeZvOWSGE5Xl rZCvGFlvvGwDnKSw4+nHfMslthT5yzYn/Sri035Y6Z5xByWyW/Or1Fey4WH46fGnd6Z4ZvXmMFYce GDW0Ex6fFgVMLBIrPGe7+C4tzcnjHlwzNWi+MjaAgWEMUIKoZCVlVtgARUEj4OtBPDmdwajdXJ8yU TwMPA493GuPdvTCmuSzz1G4X9q50Drg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h423A-0005x3-Qx; Wed, 13 Mar 2019 11:27:56 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4237-0005wS-Vh for linux-mediatek@lists.infradead.org; Wed, 13 Mar 2019 11:27:55 +0000 Received: by mail-lf1-x133.google.com with SMTP id m13so1188779lfb.6 for ; Wed, 13 Mar 2019 04:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=YzZgG24czT/9YBz3WsFlMz96fHhBAaglAId0qSoYlLU=; b=DMw6wSL5weXpuzxcE7Boq9aOh4VCpMvQ5sj4K9WrtSoZJWnqzxJBsx345/Q/nbWBRO k5hX+CsX5jT5f2meUgLQVBwzuSke3u6syYLiTiJF+x0jjOhne2RoM/FivhVQn3tOnlVa 5S/6AxcEAOY5YM2oo3xJU/JbFFcjchTH11Qarut+pMegcqx8lrvMY+b7s9CzgWznE9M+ sSYqTKcUP5JiRaGFqgZ3yxw63oFsFQO1LlQ3FZAJJk04bJPAK/pqbCVMc6/DSBryodHU YT3KP9Wi9MvOvzHUOFIdrbMV4UA4Ht1dt2RA9cMj4qGnvw0L49yaMxX3wM9IW5at+8I3 j2rw== 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:mime-version :content-disposition:user-agent; bh=YzZgG24czT/9YBz3WsFlMz96fHhBAaglAId0qSoYlLU=; b=iwvI6bPm4/LXMqu9GqmN3JusdZFaO6jsSuVxKqXWYtzjolJr6hqWE5ZRCakP3aiEKW XRrTYoAxZZAZcb5XzT9IpKEGV4Qyah3T50UWQwyUR7xBUOf3MJbhS4ROdLmnLq2PIVcs YpDDJAq/ewaC76t8ahmdbP70TJdsilHBtu46UcE0eaRla8x91ASDGoBuHTalMeuFHjeb EWAiX6Q6YGy3WPzxWSqukuVRSdDf9CfBGhuZOZf+TRCsK+Fj1e2xPgBe9s0Ti78G4TbP BQjQvVJhnQHvVFQN0d5j9Kb97/JdWbroGa2i1gqnesKQ9E/8KWHLkX6RYwRwDeL7nUJH 3jcw== X-Gm-Message-State: APjAAAVdcqB6gmt4BUS5GH1WjVZKyXME+SKzR7bPcMBV8F3MU9T1wuer /eSlph61KNA4kYerJ3hn8ecdvhFd X-Google-Smtp-Source: APXvYqzjTDpLnuKSuUT3FOrmU8oL4QKlEXAfYLOOxbkdutGTTj+UbuMHaPy1X3BdtkXKzBYbROog/g== X-Received: by 2002:a19:5006:: with SMTP id e6mr9849486lfb.29.1552476471593; Wed, 13 Mar 2019 04:27:51 -0700 (PDT) Received: from google.com ([192.36.80.8]) by smtp.gmail.com with ESMTPSA id i24sm1385499lfl.73.2019.03.13.04.27.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Mar 2019 04:27:50 -0700 (PDT) Date: Wed, 13 Mar 2019 12:27:48 +0100 From: Armando Miraglia To: neil@brown.name Subject: [PATCH] spi: mediatek: Attempt to address style issues in mt7621-spi.c Message-ID: <20190313112747.GA235429@google.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190313_042754_023790_98F9217F X-CRM114-Status: GOOD ( 10.10 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mediatek@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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, };