sync hh.org
[hh.org.git] / drivers / misc / simpad-switches.c
blob011d72116cd8fce9f645c7142f0fbe069a9f47e2
1 /*
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.
9 */
11 #include <linux/module.h>
12 #include <linux/device.h>
14 #include <asm/dma.h>
15 #include <asm/semaphore.h>
17 #include "ucb1x00.h"
20 static int simpad_switches_add(struct class_device *dev)
22 return 0;
25 static void simpad_switches_remove(struct class_device *dev)
31 static int simpad_switches_resume(struct ucb1x00 *ucb)
33 return 0;
37 static struct ucb1x00_class_interface simpad_switches_interface = {
38 .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");