diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-04-25 12:13:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-25 12:24:03 -0400 |
commit | 4654bdb63910eaafd586c7c12b473ecc0b3ab94a (patch) | |
tree | 3530782f07eeee70e870d17def014417cf9b6b0f | |
parent | 70caf709164b7347326205ea19cfafea7d002f81 (diff) |
auxdisplay: Convert list_for_each to entry variant
convert list_for_each() to list_for_each_entry() where
applicable.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/auxdisplay/panel.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c index e0c014c2356f..7a8b8fb2f572 100644 --- a/drivers/auxdisplay/panel.c +++ b/drivers/auxdisplay/panel.c | |||
@@ -1345,14 +1345,11 @@ static inline void input_state_falling(struct logical_input *input) | |||
1345 | 1345 | ||
1346 | static void panel_process_inputs(void) | 1346 | static void panel_process_inputs(void) |
1347 | { | 1347 | { |
1348 | struct list_head *item; | ||
1349 | struct logical_input *input; | 1348 | struct logical_input *input; |
1350 | 1349 | ||
1351 | keypressed = 0; | 1350 | keypressed = 0; |
1352 | inputs_stable = 1; | 1351 | inputs_stable = 1; |
1353 | list_for_each(item, &logical_inputs) { | 1352 | list_for_each_entry(input, &logical_inputs, list) { |
1354 | input = list_entry(item, struct logical_input, list); | ||
1355 | |||
1356 | switch (input->state) { | 1353 | switch (input->state) { |
1357 | case INPUT_ST_LOW: | 1354 | case INPUT_ST_LOW: |
1358 | if ((phys_curr & input->mask) != input->value) | 1355 | if ((phys_curr & input->mask) != input->value) |