mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
uwb: add symlinks in sysfs between radio controllers and PALs
Add a facility for PALs to have symlinks to their radio controller (and vice-versa) and make WUSB host controllers use this. Signed-off-by: David Vrabel <david.vrabel@csr.com>
This commit is contained in:
parent
b63795fa3a
commit
b60066c141
4 changed files with 37 additions and 8 deletions
|
@ -361,6 +361,9 @@ struct uwb_rc {
|
|||
|
||||
/**
|
||||
* struct uwb_pal - a UWB PAL
|
||||
* @name: descriptive name for this PAL (wushc, wlp, etc.).
|
||||
* @device: a device for the PAL. Used to link the PAL and the radio
|
||||
* controller in sysfs.
|
||||
* @new_rsv: called when a peer requests a reservation (may be NULL if
|
||||
* the PAL cannot accept reservation requests).
|
||||
*
|
||||
|
@ -379,7 +382,8 @@ struct uwb_rc {
|
|||
*/
|
||||
struct uwb_pal {
|
||||
struct list_head node;
|
||||
|
||||
const char *name;
|
||||
struct device *device;
|
||||
void (*new_rsv)(struct uwb_rsv *rsv);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue