Exemplo n.º 1
0
static int jpeg_pm_suspend(struct device *pDevice)
{
    struct platform_device *pdev = to_platform_device(pDevice);
    BUG_ON(pdev == NULL);

    return jpeg_suspend(pdev, PMSG_SUSPEND);
}
Exemplo n.º 2
0
int jpeg_suspend_pd(struct device *dev)
{
	struct platform_device *pdev;
	int ret;
	pm_message_t state;

	state.event = 0;
	pdev = to_platform_device(dev);
	ret = jpeg_suspend(pdev, state);

	return 0;
}