12 #include <linux/kernel.h>
13 #include <linux/module.h>
17 #include <linux/rfkill.h>
38 static int tosa_bt_set_block(
void *
data,
bool blocked)
40 pr_info(
"BT_RADIO going: %s\n", blocked ?
"off" :
"on");
46 pr_info(
"TOSA_BT: going OFF\n");
53 static const struct rfkill_ops tosa_bt_rfkill_ops = {
54 .set_block = tosa_bt_set_block,
78 &tosa_bt_rfkill_ops, data);
88 platform_set_drvdata(dev, rfk);
108 struct rfkill *rfk = platform_get_drvdata(dev);
110 platform_set_drvdata(dev,
NULL);
127 .probe = tosa_bt_probe,
137 static int __init tosa_bt_init(
void)
142 static void __exit tosa_bt_exit(
void)