button-hotplug: remove #ifdef CONFIG_HOTPLUG, it is gone in newer kernels
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40839 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6c7a005e42
commit
b7aed65fe4
1 changed files with 0 additions and 7 deletions
|
@ -208,7 +208,6 @@ static int button_hotplug_create_event(const char *name, unsigned long seen,
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------*/
|
/* -------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef CONFIG_HOTPLUG
|
|
||||||
static int button_get_index(unsigned int code)
|
static int button_get_index(unsigned int code)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -239,12 +238,6 @@ static void button_hotplug_event(struct input_handle *handle,
|
||||||
(seen - priv->seen[btn]) / HZ, value);
|
(seen - priv->seen[btn]) / HZ, value);
|
||||||
priv->seen[btn] = seen;
|
priv->seen[btn] = seen;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
static void button_hotplug_event(struct input_handle *handle,
|
|
||||||
unsigned int type, unsigned int code, int value)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_HOTPLUG */
|
|
||||||
|
|
||||||
static int button_hotplug_connect(struct input_handler *handler,
|
static int button_hotplug_connect(struct input_handler *handler,
|
||||||
struct input_dev *dev, const struct input_device_id *id)
|
struct input_dev *dev, const struct input_device_id *id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue