summaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/common.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-04-28 16:40:54 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-29 17:24:33 -0700
commit206dcc2cfe15b6174f15293ae15a097ee03eb386 (patch)
treeee7ce46c95392414748b3f3dde26f8eee2280238 /drivers/usb/renesas_usbhs/common.c
parentf429ea3f3488e1a0683f6f9ce76b420b5ebd2d63 (diff)
downloadop-kernel-dev-206dcc2cfe15b6174f15293ae15a097ee03eb386.zip
op-kernel-dev-206dcc2cfe15b6174f15293ae15a097ee03eb386.tar.gz
usb: renesas_usbhs: move pdev_to_priv to global
usbhs_pdev_to_priv function will be used in other files. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs/common.c')
-rw-r--r--drivers/usb/renesas_usbhs/common.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c
index fda586d..53be444 100644
--- a/drivers/usb/renesas_usbhs/common.c
+++ b/drivers/usb/renesas_usbhs/common.c
@@ -56,6 +56,11 @@ void usbhs_bset(struct usbhs_priv *priv, u32 reg, u16 mask, u16 data)
usbhs_write(priv, reg, val);
}
+struct usbhs_priv *usbhs_pdev_to_priv(struct platform_device *pdev)
+{
+ return dev_get_drvdata(&pdev->dev);
+}
+
/*
* syscfg functions
*/
@@ -113,11 +118,6 @@ int usbhs_frame_get_num(struct usbhs_priv *priv)
/*
* local functions
*/
-static struct usbhs_priv *usbhsc_pdev_to_priv(struct platform_device *pdev)
-{
- return dev_get_drvdata(&pdev->dev);
-}
-
static void usbhsc_bus_ctrl(struct usbhs_priv *priv, int enable)
{
int wait = usbhs_get_dparam(priv, buswait_bwait);
@@ -210,7 +210,7 @@ static void usbhsc_notify_hotplug(struct work_struct *work)
static int usbhsc_drvcllbck_notify_hotplug(struct platform_device *pdev)
{
- struct usbhs_priv *priv = usbhsc_pdev_to_priv(pdev);
+ struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev);
/*
* This functions will be called in interrupt.
@@ -351,7 +351,7 @@ probe_end_kfree:
static int __devexit usbhs_remove(struct platform_device *pdev)
{
- struct usbhs_priv *priv = usbhsc_pdev_to_priv(pdev);
+ struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev);
struct renesas_usbhs_platform_info *info = pdev->dev.platform_data;
struct renesas_usbhs_driver_callback *dfunc = &info->driver_callback;
OpenPOWER on IntegriCloud