Re: [PATCH 2/2] twl: usb: Add the resume() and suspend() methods to twl4030-usb.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 25, 2009 at 12:55:41PM +0100, ext Kim Kyuwon wrote:
> +int twl4030_usb_suspend(struct platform_device *pdev, pm_message_t state)
> +{
> +       struct twl4030_usb *twl = platform_get_drvdata(pdev);
> +
> +       if (!twl->suspend_enabled)
> +               return 0;
> +
> +       twl->otg.set_suspend(&twl->otg, 1);

otg_set_suspend(otg, 1);

> +
> +       return 0;
> +}
> +
> +int twl4030_usb_resume(struct platform_device *pdev)
> +{
> +       struct twl4030_usb *twl = platform_get_drvdata(pdev);
> +
> +       twl->otg.set_suspend(&twl->otg, 0);

otg_set_suspend(otg, 0);

-- 
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux