11 #include <linux/slab.h>
12 #include <linux/module.h>
17 #define DRV_NAME "push-switch"
18 #define DRV_VERSION "0.1.1"
29 static void switch_timer(
unsigned long data)
62 psw_info = pdev->
dev.platform_data;
74 dev_err(&pdev->
dev,
"Failed creating device attrs\n");
83 psw->
debounce.function = switch_timer;
89 platform_set_drvdata(pdev, psw);
102 struct push_switch *psw = platform_get_drvdata(pdev);
109 platform_set_drvdata(pdev,
NULL);
120 .probe = switch_drv_probe,
121 .remove = switch_drv_remove,
127 static int __init switch_init(
void)
133 static void __exit switch_exit(
void)