Commit a171516c authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

staging: panel: pass correct lengths to keypad_send_key()

We changed the sizeof() statements in 429ccf05 "staging:panel: Fixed
coding conventions." so that they could fit inside the 80 character
line limit.  Unfortunately, the new sizeof() statements are a smaller
size.  This reverts it.

There isn't a nice way to stay within the 80 character limit without
a re-work so I've gone over.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 05fcdced
...@@ -1758,7 +1758,7 @@ static inline int input_state_high(struct logical_input *input) ...@@ -1758,7 +1758,7 @@ static inline int input_state_high(struct logical_input *input)
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, keypad_send_key(press_str,
sizeof(press_str)); sizeof(input->u.kbd.press_str));
} }
if (input->u.kbd.repeat_str[0]) { if (input->u.kbd.repeat_str[0]) {
...@@ -1766,7 +1766,7 @@ static inline int input_state_high(struct logical_input *input) ...@@ -1766,7 +1766,7 @@ static inline int input_state_high(struct logical_input *input)
if (input->high_timer >= KEYPAD_REP_START) { if (input->high_timer >= KEYPAD_REP_START) {
input->high_timer -= KEYPAD_REP_DELAY; input->high_timer -= KEYPAD_REP_DELAY;
keypad_send_key(repeat_str, keypad_send_key(repeat_str,
sizeof(repeat_str)); 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;
...@@ -1805,7 +1805,7 @@ static inline void input_state_falling(struct logical_input *input) ...@@ -1805,7 +1805,7 @@ static inline void input_state_falling(struct logical_input *input)
if (input->high_timer >= KEYPAD_REP_START) if (input->high_timer >= KEYPAD_REP_START)
input->high_timer -= KEYPAD_REP_DELAY; input->high_timer -= KEYPAD_REP_DELAY;
keypad_send_key(repeat_str, keypad_send_key(repeat_str,
sizeof(repeat_str)); 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;
} }
...@@ -1824,7 +1824,7 @@ static inline void input_state_falling(struct logical_input *input) ...@@ -1824,7 +1824,7 @@ static inline void input_state_falling(struct logical_input *input)
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, keypad_send_key(release_str,
sizeof(release_str)); sizeof(input->u.kbd.release_str));
} }
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