2 * SIMpad Switches/Button implementation
4 * Copyright 2004, 2005 Holger Hans Peter Freyther
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #include <linux/module.h>
12 #include <linux/device.h>
15 #include <asm/semaphore.h>
20 static int simpad_switches_add(struct class_device
*dev
)
25 static void simpad_switches_remove(struct class_device
*dev
)
31 static int simpad_switches_resume(struct ucb1x00
*ucb
)
37 static struct ucb1x00_class_interface simpad_switches_interface
= {
39 .add
= simpad_switches_add
,
40 .remove
= simpad_switches_remove
,
42 .resume
= simpad_switches_resume
,
47 static int __init
simpad_switches_init(void)
49 return ucb1x00_register_interface(&simpad_switches_interface
);
53 static void __exit
simpad_switches_exit(void)
55 ucb1x00_unregister_interface(&simpad_switches_interface
);
59 module_init(simpad_switches_init
);
60 module_exit(simpad_switches_exit
);
62 MODULE_LICENSE("GPL");
63 MODULE_AUTHOR("Holger Hans Peter Freyther <freyther@handhelds.org>");
64 MODULE_DESCRIPTION("SIMpad Switches");