예제 #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);
}
예제 #2
0
파일: jpeg_dev.c 프로젝트: ARMP/ARMP-i9300
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;
}