Commit e6626de5392a60243c3dc86f1c6af0c73ac6e714
Committed by
Greg Kroah-Hartman
1 parent
0f1be19518
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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: Willy Tarreau <w@1wt.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 14 additions and 11 deletions Side-by-side Diff
drivers/staging/panel/panel.c
... | ... | @@ -1756,17 +1756,18 @@ |
1756 | 1756 | |
1757 | 1757 | if (input->high_timer == 0) { |
1758 | 1758 | char *press_str = input->u.kbd.press_str; |
1759 | - if (press_str[0]) | |
1760 | - keypad_send_key(press_str, | |
1761 | - sizeof(input->u.kbd.press_str)); | |
1759 | + if (press_str[0]) { | |
1760 | + int s = sizeof(input->u.kbd.press_str); | |
1761 | + keypad_send_key(press_str, s); | |
1762 | + } | |
1762 | 1763 | } |
1763 | 1764 | |
1764 | 1765 | if (input->u.kbd.repeat_str[0]) { |
1765 | 1766 | char *repeat_str = input->u.kbd.repeat_str; |
1766 | 1767 | if (input->high_timer >= KEYPAD_REP_START) { |
1768 | + int s = sizeof(input->u.kbd.repeat_str); | |
1767 | 1769 | input->high_timer -= KEYPAD_REP_DELAY; |
1768 | - keypad_send_key(repeat_str, | |
1769 | - sizeof(input->u.kbd.repeat_str)); | |
1770 | + keypad_send_key(repeat_str, s); | |
1770 | 1771 | } |
1771 | 1772 | /* we will need to come back here soon */ |
1772 | 1773 | inputs_stable = 0; |
1773 | 1774 | |
... | ... | @@ -1802,10 +1803,11 @@ |
1802 | 1803 | |
1803 | 1804 | if (input->u.kbd.repeat_str[0]) { |
1804 | 1805 | char *repeat_str = input->u.kbd.repeat_str; |
1805 | - if (input->high_timer >= KEYPAD_REP_START) | |
1806 | + if (input->high_timer >= KEYPAD_REP_START) { | |
1807 | + int s = sizeof(input->u.kbd.repeat_str); | |
1806 | 1808 | input->high_timer -= KEYPAD_REP_DELAY; |
1807 | - keypad_send_key(repeat_str, | |
1808 | - sizeof(input->u.kbd.repeat_str)); | |
1809 | + keypad_send_key(repeat_str, s); | |
1810 | + } | |
1809 | 1811 | /* we will need to come back here soon */ |
1810 | 1812 | inputs_stable = 0; |
1811 | 1813 | } |
... | ... | @@ -1822,9 +1824,10 @@ |
1822 | 1824 | release_fct(input->u.std.release_data); |
1823 | 1825 | } else if (input->type == INPUT_TYPE_KBD) { |
1824 | 1826 | char *release_str = input->u.kbd.release_str; |
1825 | - if (release_str[0]) | |
1826 | - keypad_send_key(release_str, | |
1827 | - sizeof(input->u.kbd.release_str)); | |
1827 | + if (release_str[0]) { | |
1828 | + int s = sizeof(input->u.kbd.release_str); | |
1829 | + keypad_send_key(release_str, s); | |
1830 | + } | |
1828 | 1831 | } |
1829 | 1832 | |
1830 | 1833 | input->state = INPUT_ST_LOW; |