usbhs_write(priv, reg, val);
}
+struct usbhs_priv *usbhs_pdev_to_priv(struct platform_device *pdev)
+{
+ return dev_get_drvdata(&pdev->dev);
+}
+
/*
* syscfg functions
*/
/*
* 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);
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.
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;
/*
* data
*/
+struct usbhs_priv *usbhs_pdev_to_priv(struct platform_device *pdev);
#define usbhs_get_dparam(priv, param) (priv->dparam->param)
#define usbhs_priv_to_pdev(priv) (priv->pdev)
#define usbhs_priv_to_dev(priv) (&priv->pdev->dev)