* registered yet but we already getting updates form VT to
* update led state.
*/
+#ifndef CONFIG_ANDROID
static void kbd_bh(unsigned long dummy)
{
unsigned char leds = getleds();
}
DECLARE_TASKLET_DISABLED(keyboard_tasklet, kbd_bh, 0);
+#endif
#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) ||\
defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) ||\
spin_unlock(&kbd_event_lock);
+#ifndef CONFIG_ANDROID
tasklet_schedule(&keyboard_tasklet);
+#endif
do_poke_blanked_console = 1;
schedule_console_callback();
}
* Start keyboard handler on the new keyboard by refreshing LED state to
* match the rest of the system.
*/
+#ifndef CONFIG_ANDROID
static void kbd_start(struct input_handle *handle)
{
tasklet_disable(&keyboard_tasklet);
tasklet_enable(&keyboard_tasklet);
}
+#else
+static void kbd_start(struct input_handle *handle) {}
+#endif
static const struct input_device_id kbd_ids[] = {
{
if (error)
return error;
+#ifndef CONFIG_ANDROID
tasklet_enable(&keyboard_tasklet);
tasklet_schedule(&keyboard_tasklet);
+#endif
return 0;
}
#include <linux/interrupt.h>
#include <linux/keyboard.h>
+#ifndef CONFIG_ANDROID
extern struct tasklet_struct keyboard_tasklet;
+#endif
extern int shift_state;
extern int set_console(int nr);
extern void schedule_console_callback(void);
+#ifndef CONFIG_ANDROID
static inline void set_leds(void)
{
tasklet_schedule(&keyboard_tasklet);
}
+#else
+static inline void set_leds(void) {}
+#endif
static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag)
{