summaryrefslogtreecommitdiffstats
path: root/drivers/uwb/uwb-debug.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@csr.com>2008-11-17 15:24:14 +0000
committerDavid Vrabel <david.vrabel@csr.com>2008-11-17 15:24:14 +0000
commite17be2b2a95b43fe0d5878adf330701bb7a77115 (patch)
tree90810d325dcdbf6fb73c16a6324cefa42a3e2e16 /drivers/uwb/uwb-debug.c
parent58be81ed301d96045bca2b85f3b838910efcfde4 (diff)
downloadop-kernel-dev-e17be2b2a95b43fe0d5878adf330701bb7a77115.zip
op-kernel-dev-e17be2b2a95b43fe0d5878adf330701bb7a77115.tar.gz
uwb: add pal parameter to new reservation callback
The pal parameter allows PALs to retrieve their PAL-specific data structure. Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/uwb/uwb-debug.c')
-rw-r--r--drivers/uwb/uwb-debug.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/uwb/uwb-debug.c b/drivers/uwb/uwb-debug.c
index 88e6ac7..217ebaa 100644
--- a/drivers/uwb/uwb-debug.c
+++ b/drivers/uwb/uwb-debug.c
@@ -306,13 +306,13 @@ static struct file_operations drp_avail_fops = {
.owner = THIS_MODULE,
};
-static void uwb_dbg_new_rsv(struct uwb_rsv *rsv)
+static void uwb_dbg_new_rsv(struct uwb_pal *pal, struct uwb_rsv *rsv)
{
- struct uwb_rc *rc = rsv->rc;
+ struct uwb_dbg *dbg = container_of(pal, struct uwb_dbg, pal);
- if (rc->dbg->accept) {
- list_add_tail(&rsv->pal_node, &rc->dbg->rsvs);
- uwb_rsv_accept(rsv, uwb_dbg_rsv_cb, NULL);
+ if (dbg->accept) {
+ list_add_tail(&rsv->pal_node, &dbg->rsvs);
+ uwb_rsv_accept(rsv, uwb_dbg_rsv_cb, dbg);
}
}
OpenPOWER on IntegriCloud