13 #include <linux/module.h>
16 #include <linux/string.h>
17 #include <linux/ctype.h>
20 #include <linux/rfkill.h>
22 #include <mach/regs-gpio.h>
23 #include <mach/hardware.h>
27 #define DRV_NAME "h1940-bt"
30 static void h1940bt_enable(
int on)
55 static int h1940bt_set_block(
void *
data,
bool blocked)
57 h1940bt_enable(!blocked);
61 static const struct rfkill_ops h1940bt_rfkill_ops = {
62 .set_block = h1940bt_set_block,
79 dev_err(&pdev->
dev,
"could not get BT_POWER\n");
94 &h1940bt_rfkill_ops,
NULL);
104 platform_set_drvdata(pdev, rfk);
116 struct rfkill *rfk = platform_get_drvdata(pdev);
118 platform_set_drvdata(pdev,
NULL);
137 .probe = h1940bt_probe,
138 .remove = h1940bt_remove,