Commit e6626de5 authored by Jake Champlin's avatar Jake Champlin Committed by Greg Kroah-Hartman

Staging: Panel: panel: Fixed checkpatch line length warnings

Fixed 4 cases of line length issues with checkpatch. Checkpatch is now clean
for panel.c.

Signed-off-by: 'Jake Champlin <jake.champlin.27@gmail.com>'
Acked-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0f1be195
...@@ -1756,17 +1756,18 @@ static inline int input_state_high(struct logical_input *input) ...@@ -1756,17 +1756,18 @@ static inline int input_state_high(struct logical_input *input)
if (input->high_timer == 0) { if (input->high_timer == 0) {
char *press_str = input->u.kbd.press_str; char *press_str = input->u.kbd.press_str;
if (press_str[0]) if (press_str[0]) {
keypad_send_key(press_str, int s = sizeof(input->u.kbd.press_str);
sizeof(input->u.kbd.press_str)); keypad_send_key(press_str, s);
}
} }
if (input->u.kbd.repeat_str[0]) { if (input->u.kbd.repeat_str[0]) {
char *repeat_str = input->u.kbd.repeat_str; char *repeat_str = input->u.kbd.repeat_str;
if (input->high_timer >= KEYPAD_REP_START) { if (input->high_timer >= KEYPAD_REP_START) {
int s = sizeof(input->u.kbd.repeat_str);
input->high_timer -= KEYPAD_REP_DELAY; input->high_timer -= KEYPAD_REP_DELAY;
keypad_send_key(repeat_str, keypad_send_key(repeat_str, s);
sizeof(input->u.kbd.repeat_str));
} }
/* we will need to come back here soon */ /* we will need to come back here soon */
inputs_stable = 0; inputs_stable = 0;
...@@ -1802,10 +1803,11 @@ static inline void input_state_falling(struct logical_input *input) ...@@ -1802,10 +1803,11 @@ static inline void input_state_falling(struct logical_input *input)
if (input->u.kbd.repeat_str[0]) { if (input->u.kbd.repeat_str[0]) {
char *repeat_str = input->u.kbd.repeat_str; char *repeat_str = input->u.kbd.repeat_str;
if (input->high_timer >= KEYPAD_REP_START) if (input->high_timer >= KEYPAD_REP_START) {
int s = sizeof(input->u.kbd.repeat_str);
input->high_timer -= KEYPAD_REP_DELAY; input->high_timer -= KEYPAD_REP_DELAY;
keypad_send_key(repeat_str, keypad_send_key(repeat_str, s);
sizeof(input->u.kbd.repeat_str)); }
/* we will need to come back here soon */ /* we will need to come back here soon */
inputs_stable = 0; inputs_stable = 0;
} }
...@@ -1822,9 +1824,10 @@ static inline void input_state_falling(struct logical_input *input) ...@@ -1822,9 +1824,10 @@ static inline void input_state_falling(struct logical_input *input)
release_fct(input->u.std.release_data); release_fct(input->u.std.release_data);
} else if (input->type == INPUT_TYPE_KBD) { } else if (input->type == INPUT_TYPE_KBD) {
char *release_str = input->u.kbd.release_str; char *release_str = input->u.kbd.release_str;
if (release_str[0]) if (release_str[0]) {
keypad_send_key(release_str, int s = sizeof(input->u.kbd.release_str);
sizeof(input->u.kbd.release_str)); keypad_send_key(release_str, s);
}
} }
input->state = INPUT_ST_LOW; input->state = INPUT_ST_LOW;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment