uboot-mtk-20250711: glbtn: remove reference to common.h
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
@@ -3120,7 +3120,7 @@ config CMD_SPAWN_NUM_JOBS
|
||||
|
||||
config CMD_GL_BTN
|
||||
bool "GL-iNet button check command"
|
||||
depends on BUTTON
|
||||
depends on BUTTON && LED
|
||||
default n
|
||||
select POLLER
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <button.h>
|
||||
#include <exports.h>
|
||||
#include <linux/delay.h>
|
||||
#include <poller.h>
|
||||
#include <time.h>
|
||||
#include <dm/ofnode.h>
|
||||
#include <env.h>
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <led.h>
|
||||
#include <poller.h>
|
||||
#include <time.h>
|
||||
|
||||
#define MAX_LED_BLINK 5
|
||||
|
||||
@@ -24,7 +24,7 @@ static void led_blink_func(struct poller_struct *poller)
|
||||
struct led_blink *led = &led_blinks[i];
|
||||
if (!led->dev)
|
||||
continue;
|
||||
|
||||
|
||||
if (led->next_event && now < led->next_event)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user