예제 #1
0
static void lg_remove(struct hid_device *hdev)
{
	unsigned long quirks = (unsigned long)hid_get_drvdata(hdev);
	if(quirks & LG_FF4)
		lg4ff_deinit(hdev);

	hid_hw_stop(hdev);
}
예제 #2
0
파일: hid-lg.c 프로젝트: acton393/linux
static void lg_remove(struct hid_device *hdev)
{
	struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
	if (drv_data->quirks & LG_FF4)
		lg4ff_deinit(hdev);
	else
		hid_hw_stop(hdev);
	kfree(drv_data);
}