bt_control_t: drop name field

This commit is contained in:
Matthias Ringwald 2016-01-22 16:37:22 +01:00
parent 289689b72b
commit a9d55de2af
2 changed files with 0 additions and 10 deletions

View File

@ -180,10 +180,6 @@ int iphone_system_is_valid(void *config){
return 1;
}
static const char * iphone_name(void *config){
return get_machine_name();
}
// Get BD_ADDR from IORegistry
static void ioregistry_get_info(void){
mach_port_t mp;
@ -760,7 +756,6 @@ bt_control_t bt_control_iphone = {
.off = iphone_off,
.sleep = iphone_sleep,
.wake = iphone_wake,
.name = iphone_name,
.register_for_power_notifications = iphone_register_for_power_notifications
};

View File

@ -64,11 +64,6 @@ typedef struct {
int (*off) (void *config); // <-- turn BT module off
int (*sleep)(void *config); // <-- put BT module to sleep - only to be called after ON
int (*wake) (void *config); // <-- wake BT module from sleep - only to be called after SLEEP
// check what it is needed for
const char * (*name) (void *config); // <-- return hardware name
// stays
void (*register_for_power_notifications)(void (*cb)(POWER_NOTIFICATION_t event));
// move to hci.h