Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1951434AbdDYQNs (ORCPT ); Tue, 25 Apr 2017 12:13:48 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36282 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1951182AbdDYQNl (ORCPT ); Tue, 25 Apr 2017 12:13:41 -0400 From: Wei Yongjun To: Miguel Ojeda Sandonis , Andy Shevchenko , Greg Kroah-Hartman Cc: Wei Yongjun , linux-kernel@vger.kernel.org Subject: [PATCH -next] auxdisplay: Convert list_for_each to entry variant Date: Tue, 25 Apr 2017 16:13:34 +0000 Message-Id: <20170425161334.11969-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 909 Lines: 30 From: Wei Yongjun convert list_for_each() to list_for_each_entry() where applicable. Signed-off-by: Wei Yongjun --- drivers/auxdisplay/panel.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c index e0c014c..7a8b8fb 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)