From: Aurelien BOUIN <a.bouin@gmail.com>
To: broonie@kernel.org
Cc: festevam@gmail.com, linux-spi@vger.kernel.org,
linux-kernel@vger.kernel.org, Aurelien BOUIN <a.bouin@gmail.com>
Subject: [PATCH 2/4] spi: imx: checkpatch cleanup
Date: Thu, 12 Feb 2015 13:07:26 +0100 [thread overview]
Message-ID: <1423742848-15369-2-git-send-email-a.bouin@gmail.com> (raw)
In-Reply-To: <1423742848-15369-1-git-send-email-a.bouin@gmail.com>
This patch solve various issue detected by checkpatch.pl
Signed-off-by: Aurelien BOUIN <a.bouin@gmail.com>
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index fe1b769..f8400b2 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -282,7 +282,8 @@ static unsigned int mx51_ecspi_clkdiv(unsigned int fin, unsigned int fspi,
(post << MX51_ECSPI_CTRL_POSTDIV_OFFSET);
}
-static void __maybe_unused mx51_ecspi_intctrl(struct spi_imx_data *spi_imx, int enable)
+static void __maybe_unused mx51_ecspi_intctrl(struct spi_imx_data *spi_imx,
+ int enable)
{
unsigned val = 0;
@@ -426,7 +427,8 @@ static void __maybe_unused mx51_ecspi_reset(struct spi_imx_data *spi_imx)
* the i.MX35 has a slightly different register layout for bits
* we do not use here.
*/
-static void __maybe_unused mx31_intctrl(struct spi_imx_data *spi_imx, int enable)
+static void __maybe_unused mx31_intctrl(struct spi_imx_data *spi_imx,
+ int enable)
{
unsigned int val = 0;
@@ -504,7 +506,8 @@ static void __maybe_unused mx31_reset(struct spi_imx_data *spi_imx)
#define MX21_CSPICTRL_DR_SHIFT 14
#define MX21_CSPICTRL_CS_SHIFT 19
-static void __maybe_unused mx21_intctrl(struct spi_imx_data *spi_imx, int enable)
+static void __maybe_unused mx21_intctrl(struct spi_imx_data *spi_imx,
+ int enable)
{
unsigned int val = 0;
@@ -1111,6 +1114,7 @@ static int spi_imx_probe(struct platform_device *pdev)
for (i = 0; i < master->num_chipselect; i++) {
int cs_gpio = of_get_named_gpio(np, "cs-gpios", i);
+
if (!gpio_is_valid(cs_gpio) && mxc_platform_info)
cs_gpio = mxc_platform_info->chipselect[i];
--
1.9.1
next prev parent reply other threads:[~2015-02-12 12:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 12:07 [PATCH 1/4] serial: " Aurelien BOUIN
2015-02-12 12:07 ` Aurelien BOUIN [this message]
2015-02-12 12:42 ` [PATCH 2/4] spi: " Joe Perches
2015-02-12 13:03 ` aurélien bouin
2015-02-12 17:44 ` Joe Perches
2015-02-21 14:34 ` Mark Brown
2015-02-23 8:45 ` aurélien bouin
2015-02-23 13:33 ` Mark Brown
2015-02-12 12:07 ` [PATCH 3/4] spi: imx: Chose DMA bits per word transfered Aurelien BOUIN
2015-02-21 14:35 ` Mark Brown
2015-02-23 8:44 ` aurélien bouin
2015-02-23 14:46 ` Mark Brown
2015-02-23 15:25 ` aurélien bouin
2015-02-24 1:54 ` Mark Brown
2015-02-12 12:07 ` [PATCH 4/4] dt: fsl-imx-cspi.txt: Add fsl,spi-dma-bits-per-word Aurelien BOUIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423742848-15369-2-git-send-email-a.bouin@gmail.com \
--to=a.bouin@gmail.com \
--cc=broonie@kernel.org \
--cc=festevam@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome