Hi Bing, > The cal-data is platform dependent. It's simpler and more feasible > to use device tree based cal-data instead of configuration file > based cal-data. > > This patch remove configuration file based cal-data downloading > and replace it using cal-data from device tree. > > Cc: Mike Frysinger <vapier@xxxxxxxxxxxx> > Cc: Amitkumar Karwar <akarwar@xxxxxxxxxxx> > Signed-off-by: Bing Zhao <bzhao@xxxxxxxxxxx> > Signed-off-by: Hyuckjoo Lee <hyuckjoo.lee@xxxxxxxxxxx> > --- > drivers/bluetooth/btmrvl_drv.h | 4 -- > drivers/bluetooth/btmrvl_main.c | 92 ++++++++--------------------------------- > drivers/bluetooth/btmrvl_sdio.c | 9 +--- > drivers/bluetooth/btmrvl_sdio.h | 2 - > 4 files changed, 18 insertions(+), 89 deletions(-) > > diff --git a/drivers/bluetooth/btmrvl_drv.h b/drivers/bluetooth/btmrvl_drv.h > index f9d1833..be76851 100644 > --- a/drivers/bluetooth/btmrvl_drv.h > +++ b/drivers/bluetooth/btmrvl_drv.h > @@ -23,8 +23,6 @@ > #include <linux/bitops.h> > #include <linux/slab.h> > #include <net/bluetooth/bluetooth.h> > -#include <linux/ctype.h> > -#include <linux/firmware.h> > > #define BTM_HEADER_LEN 4 > #define BTM_UPLD_SIZE 2312 > @@ -43,8 +41,6 @@ struct btmrvl_thread { > struct btmrvl_device { > void *card; > struct hci_dev *hcidev; > - struct device *dev; > - const char *cal_data; > > u8 dev_type; > > diff --git a/drivers/bluetooth/btmrvl_main.c b/drivers/bluetooth/btmrvl_main.c > index 5cf31c4..a17812d 100644 > --- a/drivers/bluetooth/btmrvl_main.c > +++ b/drivers/bluetooth/btmrvl_main.c > @@ -19,7 +19,7 @@ > **/ > > #include <linux/module.h> > - > +#include <linux/of.h> > #include <net/bluetooth/bluetooth.h> > #include <net/bluetooth/hci_core.h> here now it becomes tricky. Does this now depend on CONFIG_OF as well? What happens to x86 systems that generally do not use open firmware or device tree. Do they still work? Which kind of devices need the calibration data anyway? All of them? Just the ones without EEPROM? You need to pretty much verbose in your commit message on what is going on. And I get the feeling that you have to handle the case where CONFIG_OF is not selected. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html