diff options
author | David Vrabel <david.vrabel@csr.com> | 2008-11-17 11:23:22 -0500 |
---|---|---|
committer | David Vrabel <david.vrabel@csr.com> | 2008-11-19 09:47:16 -0500 |
commit | 0996e6382482ce9014787693d3884e9468153a5c (patch) | |
tree | 28cbbf373b61b98445ae84bef6f25e6625fee922 | |
parent | e8e1594c8126b1b773988fa2e3bfec76cff88336 (diff) |
uwb: remove unused beacon group join/leave events
The UWB_NOTIF_BG_JOIN/UWB_NOTIF_BG_LEAVE events have been
superceeded by the channel_changed callback in struct uwb_pal.
Signed-off-by: David Vrabel <david.vrabel@csr.com>
-rw-r--r-- | drivers/uwb/beacon.c | 17 | ||||
-rw-r--r-- | include/linux/uwb.h | 7 |
2 files changed, 4 insertions, 20 deletions
diff --git a/drivers/uwb/beacon.c b/drivers/uwb/beacon.c index 247956098afa..d9c60cb94993 100644 --- a/drivers/uwb/beacon.c +++ b/drivers/uwb/beacon.c | |||
@@ -140,10 +140,8 @@ int uwb_rc_beacon(struct uwb_rc *rc, int channel, unsigned bpst_offset) | |||
140 | } | 140 | } |
141 | } | 141 | } |
142 | 142 | ||
143 | if (result >= 0) { | 143 | if (result >= 0) |
144 | rc->beaconing = channel; | 144 | rc->beaconing = channel; |
145 | uwb_notify(rc, NULL, uwb_bg_joined(rc) ? UWB_NOTIF_BG_JOIN : UWB_NOTIF_BG_LEAVE); | ||
146 | } | ||
147 | return result; | 145 | return result; |
148 | } | 146 | } |
149 | 147 | ||
@@ -581,19 +579,6 @@ error: | |||
581 | return result; | 579 | return result; |
582 | } | 580 | } |
583 | 581 | ||
584 | /** | ||
585 | * uwb_bg_joined - is the RC in a beacon group? | ||
586 | * @rc: the radio controller | ||
587 | * | ||
588 | * Returns true if the radio controller is in a beacon group (even if | ||
589 | * it's the sole member). | ||
590 | */ | ||
591 | int uwb_bg_joined(struct uwb_rc *rc) | ||
592 | { | ||
593 | return rc->beaconing != -1; | ||
594 | } | ||
595 | EXPORT_SYMBOL_GPL(uwb_bg_joined); | ||
596 | |||
597 | /* | 582 | /* |
598 | * Print beaconing state. | 583 | * Print beaconing state. |
599 | */ | 584 | */ |
diff --git a/include/linux/uwb.h b/include/linux/uwb.h index 7d3ebf046f9a..1719709d60ca 100644 --- a/include/linux/uwb.h +++ b/include/linux/uwb.h | |||
@@ -479,7 +479,6 @@ ssize_t uwb_rc_vcmd(struct uwb_rc *rc, const char *cmd_name, | |||
479 | struct uwb_rccb *cmd, size_t cmd_size, | 479 | struct uwb_rccb *cmd, size_t cmd_size, |
480 | u8 expected_type, u16 expected_event, | 480 | u8 expected_type, u16 expected_event, |
481 | struct uwb_rceb **preply); | 481 | struct uwb_rceb **preply); |
482 | int uwb_bg_joined(struct uwb_rc *rc); | ||
483 | 482 | ||
484 | size_t __uwb_addr_print(char *, size_t, const unsigned char *, int); | 483 | size_t __uwb_addr_print(char *, size_t, const unsigned char *, int); |
485 | 484 | ||
@@ -568,7 +567,9 @@ static inline bool uwb_rsv_is_owner(struct uwb_rsv *rsv) | |||
568 | } | 567 | } |
569 | 568 | ||
570 | /** | 569 | /** |
571 | * Events generated by UWB that can be passed to any listeners | 570 | * enum uwb_notifs - UWB events that can be passed to any listeners |
571 | * @UWB_NOTIF_ONAIR: a new neighbour has joined the beacon group. | ||
572 | * @UWB_NOTIF_OFFAIR: a neighbour has left the beacon group. | ||
572 | * | 573 | * |
573 | * Higher layers can register callback functions with the radio | 574 | * Higher layers can register callback functions with the radio |
574 | * controller using uwb_notifs_register(). The radio controller | 575 | * controller using uwb_notifs_register(). The radio controller |
@@ -576,8 +577,6 @@ static inline bool uwb_rsv_is_owner(struct uwb_rsv *rsv) | |||
576 | * nodes when an event occurs. | 577 | * nodes when an event occurs. |
577 | */ | 578 | */ |
578 | enum uwb_notifs { | 579 | enum uwb_notifs { |
579 | UWB_NOTIF_BG_JOIN = 0, /* radio controller joined a beacon group */ | ||
580 | UWB_NOTIF_BG_LEAVE = 1, /* radio controller left a beacon group */ | ||
581 | UWB_NOTIF_ONAIR, | 580 | UWB_NOTIF_ONAIR, |
582 | UWB_NOTIF_OFFAIR, | 581 | UWB_NOTIF_OFFAIR, |
583 | }; | 582 | }; |