Staging: rtl8188eu: Reindented code to reduce line size
PATCH 1/1 Staging: rtl8188eu: Reindented code to reduce line size
Reidented code to reduce line size and increase readability.
--- drivers/staging/rtl8188eu/hal/bb_cfg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/rtl8188eu/hal/bb_cfg.c +4 -2
@@ -508,7 +508,8 @@ static u32 array_phy_reg_pg_8188e[] = { }; -static void store_pwrindex_offset (struct adapter *Adapter,u32 regaddr,u32 bitmask,u32 data) +static void store_pwrindex_offset (struct adapter *Adapter, +u32 regaddr,u32 bitmask,u32 data) {struct hal_data_8188e *hal_data =GET_HAL_DATA (Adapter);u8 pwrGrpCnt = hal_data->pwrGroupCnt;
@@ -553,7 +554,8 @@ static void store_pwrindex_offset(struct adapter *Adapter, u32 regaddr, u32 bitm } } -static void rtl_addr_delay (struct adapter *adapt,u32 addr,u32 bit_mask,u32 data) +static void rtl_addr_delay (struct adapter *adapt, +u32 addr,u32 bit_mask,u32 data) {if (addr ==0xfe ) {msleep (50 );
Signature · 1 line
1.9.1
Quoted 1 line · Vatika Harlalka
Reidented code to reduce line size and increase readability.
Remember to use the imperative. So "Reindent" rather than "Reindented".
Also, I think that it would look nicer to line the arguments up, or at least to put the continuation line to the right of the (. But you should check what is done elsewhere in the file.
julia
Quoted 40 lines
Signed-off-by Vatika Harlalka <[email protected]>--- drivers/staging/rtl8188eu/hal/bb_cfg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/staging/rtl8188eu/hal/bb_cfg.c +4
-3@@ -508,7 +508,8 @@ static u32 array_phy_reg_pg_8188e[] = { }; -static void store_pwrindex_offset (struct adapter *Adapter,u32 regaddr,u32 bitmask,u32 data) +static void store_pwrindex_offset (struct adapter *Adapter, +u32 regaddr,u32 bitmask,u32 data) {struct hal_data_8188e *hal_data =GET_HAL_DATA (Adapter);u8 pwrGrpCnt = hal_data->pwrGroupCnt;@@ -553,7 +554,8 @@ static void store_pwrindex_offset(struct adapter *Adapter, u32 regaddr, u32 bitm } } -static void rtl_addr_delay (struct adapter *adapt,u32 addr,u32 bit_mask,u32 data) +static void rtl_addr_delay (struct adapter *adapt, +u32 addr,u32 bit_mask,u32 data) {if (addr ==0xfe ) {msleep (50 ); --1.9.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20150223082932.GA30012%40gmail.com.
For more options, visit https://groups.google.com/d/optout.