mvebu-mbus: Adjustments for mvebu_devs_debug_show()
Subsystems (2)
cover mvebu-mbus: Adjustments for mvebu_devs_debug_show()
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(-)
Signature · 1 line
2.15.1
PATCH 1/2 mvebu-mbus: Use seq_putc() in mvebu_devs_debug_show()
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.
--- drivers/bus/mvebu-mbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/mvebu-mbus.c +1 -1
@@ -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 ;
Signature · 1 line
2.15.1
PATCH 2/2 mvebu-mbus: Fix a typo in five comment lines
In reply to SF Markus ElfringFrom: Markus Elfring <[email protected]>
Date: Fri, 12 Jan 2018 17:44:48 +0100
Adjust words in these descriptions.
--- drivers/bus/mvebu-mbus.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)
drivers/bus/mvebu-mbus.c +9 -10
@@ -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;
Signature · 1 line
2.15.1