staging: greybus: Fix line over 80 characters issues
Subsystems (3)
PATCH 1/1 staging: greybus: Fix line over 80 characters issues
Fix line over 80 characters coding style issues. Issue found by checkpatch.
--- drivers/staging/greybus/arche-platform.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)
drivers/staging/greybus/arche-platform.c +11 -8
@@ -47,7 +47,8 @@ struct arche_platform_drvdata {struct gpio_desc *svc_reset;bool is_reset_act_hi;struct gpio_desc *svc_sysboot; -struct gpio_desc *wake_detect;/* bi-dir,maps to WAKE_MOD & WAKE_FRAME signals */ +struct gpio_desc *wake_detect; +/* bi-dir,maps to WAKE_MOD & WAKE_FRAME signals */ enum arche_platform_state state;
@@ -168,10 +169,10 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid)*/ if (arche_pdata->wake_detect_state ==WD_STATE_BOOT_INIT ) {if (time_before (jiffies, - arche_pdata->wake_detect_start + -msecs_to_jiffies (WD_COLDBOOT_PULSE_WIDTH_MS ))) { -arche_platform_set_wake_detect_state (arche_pdata, -WD_STATE_IDLE ); + arche_pdata->wake_detect_start + +msecs_to_jiffies (WD_COLDBOOT_PULSE_WIDTH_MS ))) { +arche_platform_set_wake_detect_state + (arche_pdata,WD_STATE_IDLE ); }else {/* * Check we are not in middle of irq thread
@@ -179,8 +180,10 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid)*/ if (arche_pdata->wake_detect_state !=WD_STATE_COLDBOOT_START ) { -arche_platform_set_wake_detect_state (arche_pdata, -WD_STATE_COLDBOOT_TRIG ); +arche_platform_set_wake_detect_state + (arche_pdata, +WD_STATE_COLDBOOT_TRIG ); +spin_unlock_irqrestore ( &arche_pdata->wake_lock, flags);
@@ -200,7 +203,7 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid)* to standby boot. */ arche_platform_set_wake_detect_state (arche_pdata, -WD_STATE_BOOT_INIT ); +WD_STATE_BOOT_INIT ); } }
Signature · 1 line
2.17.1
Greg KH
maintainerQuoted 13 lines · Jamal Shareef
Fix line over 80 characters coding style issues. Issue found by checkpatch.
Signed-off-by Jamal Shareef <[email protected]>--- drivers/staging/greybus/arche-platform.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)drivers/staging/greybus/arche-platform.c +0
-0
drivers/staging/greybus/arche-platform.c struct arche_platform_drvdata { · line 51
Quoted 6 lines
drivers/staging/greybus/arche-platform.c +2
-1@@ -47,7 +47,8 @@ struct arche_platform_drvdata {struct gpio_desc *svc_reset;bool is_reset_act_hi;struct gpio_desc *svc_sysboot; -struct gpio_desc *wake_detect;/* bi-dir,maps to WAKE_MOD & WAKE_FRAME signals */ +struct gpio_desc *wake_detect; +/* bi-dir,maps to WAKE_MOD & WAKE_FRAME signals */
The comment should be above the line, if you really want to do this. I would just leave this alone, sorry
Quoted 4 lines
drivers/staging/greybus/arche-platform.c +0
-0enum arche_platform_state state;@@ -168,10 +169,10 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid)*/
drivers/staging/greybus/arche-platform.c static irqreturn_t arche_platform_wd_irq(int irq, void *devid) · line 175
Quoted 10 lines
drivers/staging/greybus/arche-platform.c +4
-4if (arche_pdata->wake_detect_state ==WD_STATE_BOOT_INIT ) {if (time_before (jiffies, - arche_pdata->wake_detect_start + -msecs_to_jiffies (WD_COLDBOOT_PULSE_WIDTH_MS ))) { -arche_platform_set_wake_detect_state (arche_pdata, -WD_STATE_IDLE ); + arche_pdata->wake_detect_start + +msecs_to_jiffies (WD_COLDBOOT_PULSE_WIDTH_MS ))) { +arche_platform_set_wake_detect_state + (arche_pdata,WD_STATE_IDLE );
I think you will get different errors from checkpatch now, right?
This alignment makes the code harder to understand.
drivers/staging/greybus/arche-platform.c static irqreturn_t arche_platform_wd_irq(int irq, void *devid) · line 185
Quoted 12 lines
drivers/staging/greybus/arche-platform.c +3
-2}else {/* * Check we are not in middle of irq thread @@ -179,8 +180,10 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid)*/ if (arche_pdata->wake_detect_state !=WD_STATE_COLDBOOT_START ) { -arche_platform_set_wake_detect_state (arche_pdata, -WD_STATE_COLDBOOT_TRIG ); +arche_platform_set_wake_detect_state + (arche_pdata, +WD_STATE_COLDBOOT_TRIG );
Same here :(
drivers/staging/greybus/arche-platform.c static irqreturn_t arche_platform_wd_irq(int irq, void *devid) · line 206
Quoted 10 lines
drivers/staging/greybus/arche-platform.c +2
-1+spin_unlock_irqrestore ( &arche_pdata->wake_lock, flags);@@ -200,7 +203,7 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid)* to standby boot. */ arche_platform_set_wake_detect_state (arche_pdata, -WD_STATE_BOOT_INIT ); +WD_STATE_BOOT_INIT );
And here :(
I think this file really can't be fixed up anymore for line-lengths, sorry.
greg k-h