Skip to content

Commit

Permalink
auxdisplay: Convert list_for_each to entry variant
Browse files Browse the repository at this point in the history
convert list_for_each() to list_for_each_entry() where
applicable.

Signed-off-by: Wei Yongjun <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Wei Yongjun authored and gregkh committed May 25, 2017
1 parent 70caf70 commit 4654bdb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/auxdisplay/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1345,14 +1345,11 @@ static inline void input_state_falling(struct logical_input *input)

static void panel_process_inputs(void)
{
struct list_head *item;
struct logical_input *input;

keypressed = 0;
inputs_stable = 1;
list_for_each(item, &logical_inputs) {
input = list_entry(item, struct logical_input, list);

list_for_each_entry(input, &logical_inputs, list) {
switch (input->state) {
case INPUT_ST_LOW:
if ((phys_curr & input->mask) != input->value)
Expand Down

0 comments on commit 4654bdb

Please sign in to comment.