From: Markus Elfring <[email protected]>
Date: Fri, 12 Jan 2018 17:47:57 +0100
Two update suggestions were taken into account
from static source code analysis.
Markus Elfring (2):
Use seq_putc()
Fix a typo in five comment lines
drivers/bus/mvebu-mbus.c | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
--
2.15.1
From: Markus Elfring <[email protected]>
Date: Fri, 12 Jan 2018 17:12:14 +0100
A single character (line break) should be put into a sequence.
Thus use the corresponding function "seq_putc".
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <[email protected]>
---
drivers/bus/mvebu-mbus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c
index 70db4d5638a6..5844901aea0b 100644
--- a/drivers/bus/mvebu-mbus.c
+++ b/drivers/bus/mvebu-mbus.c
@@ -514,7 +514,7 @@ static int mvebu_devs_debug_show(struct seq_file *seq, void *v)
seq_printf(seq, " (remap %016llx)\n",
(unsigned long long)wremap);
} else
- seq_printf(seq, "\n");
+ seq_putc(seq, '\n');
}
return 0;
--
2.15.1
From: Markus Elfring <[email protected]>
Date: Fri, 12 Jan 2018 17:44:48 +0100
Adjust words in these descriptions.
Signed-off-by: Markus Elfring <[email protected]>
---
drivers/bus/mvebu-mbus.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c
index 5844901aea0b..e0c1b07108a6 100644
--- a/drivers/bus/mvebu-mbus.c
+++ b/drivers/bus/mvebu-mbus.c
@@ -23,15 +23,14 @@
*
* This driver:
*
- * - Reads out the SDRAM address decoding windows at initialization
- * time, and fills the mvebu_mbus_dram_info structure with these
- * informations. The exported function mv_mbus_dram_info() allow
- * device drivers to get those informations related to the SDRAM
- * address decoding windows. This is because devices also have their
- * own windows (configured through registers that are part of each
- * device register space), and therefore the drivers for Marvell
- * devices have to configure those device -> SDRAM windows to ensure
- * that DMA works properly.
+ * - Reads out the SDRAM address decoding windows at initialization time,
+ * and fills the mvebu_mbus_dram_info structure with this information.
+ * The exported function mv_mbus_dram_info() allows device drivers to get
+ * this information related to the SDRAM address decoding windows.
+ * This is because devices also have their own windows (configured through
+ * registers that are part of each device register space), and therefore
+ * the drivers for Marvell devices have to configure those device
+ * -> SDRAM windows to ensure that DMA works properly.
*
* - Provides an API for platform code or device drivers to
* dynamically add or remove address decoding windows for the CPU ->
@@ -123,7 +122,7 @@ struct mvebu_mbus_soc_data {
};
/*
- * Used to store the state of one MBus window accross suspend/resume.
+ * Used to store the state of one MBus window across suspend/resume.
*/
struct mvebu_mbus_win_data {
u32 ctrl;
--
2.15.1