uwb: add symlinks in sysfs between radio controllers and PALs
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / usb / wusbcore / pal.c
blob7cc51e9905cf81e2234c0435d88630e9b1f558be
1 /*
2 * Wireless USB Host Controller
3 * UWB Protocol Adaptation Layer (PAL) glue.
5 * Copyright (C) 2008 Cambridge Silicon Radio Ltd.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License version
9 * 2 as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include "wusbhc.h"
21 /**
22 * wusbhc_pal_register - register the WUSB HC as a UWB PAL
23 * @wusbhc: the WUSB HC
25 int wusbhc_pal_register(struct wusbhc *wusbhc)
27 uwb_pal_init(&wusbhc->pal);
29 wusbhc->pal.name = "wusbhc";
30 wusbhc->pal.device = wusbhc->usb_hcd.self.controller;
32 return uwb_pal_register(wusbhc->uwb_rc, &wusbhc->pal);
35 /**
36 * wusbhc_pal_register - unregister the WUSB HC as a UWB PAL
37 * @wusbhc: the WUSB HC
39 void wusbhc_pal_unregister(struct wusbhc *wusbhc)
41 uwb_pal_unregister(wusbhc->uwb_rc, &wusbhc->pal);