From: Wei Yongjun Date: Tue, 25 Apr 2017 16:13:34 +0000 (+0000) Subject: auxdisplay: Convert list_for_each to entry variant X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4654bdb63910eaafd586c7c12b473ecc0b3ab94a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git auxdisplay: Convert list_for_each to entry variant convert list_for_each() to list_for_each_entry() where applicable. Signed-off-by: Wei Yongjun Reviewed-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- 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) 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)