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>
This commit is contained in:
parent
70caf70916
commit
4654bdb639
|
@ -1345,14 +1345,11 @@ static inline void input_state_falling(struct logical_input *input)
|
||||||
|
|
||||||
static void panel_process_inputs(void)
|
static void panel_process_inputs(void)
|
||||||
{
|
{
|
||||||
struct list_head *item;
|
|
||||||
struct logical_input *input;
|
struct logical_input *input;
|
||||||
|
|
||||||
keypressed = 0;
|
keypressed = 0;
|
||||||
inputs_stable = 1;
|
inputs_stable = 1;
|
||||||
list_for_each(item, &logical_inputs) {
|
list_for_each_entry(input, &logical_inputs, list) {
|
||||||
input = list_entry(item, struct logical_input, list);
|
|
||||||
|
|
||||||
switch (input->state) {
|
switch (input->state) {
|
||||||
case INPUT_ST_LOW:
|
case INPUT_ST_LOW:
|
||||||
if ((phys_curr & input->mask) != input->value)
|
if ((phys_curr & input->mask) != input->value)
|
||||||
|
|
Loading…
Reference in New Issue