struct acpi_video_device * dev = container_of(node, struct acpi_video_device, entry); 
dev = container_of(node, struct acpi_video_device, entry); 
acpi_video_switch_output(	struct acpi_video_bus *video, 	int	event){	struct list_head * node, * next;	struct acpi_video_device *dev=NULL;       	struct acpi_video_device *dev_next=NULL;	struct acpi_video_device *dev_prev=NULL;	unsigned long state;	int status = 0;	ACPI_FUNCTION_TRACE("acpi_video_switch_output");	list_for_each_safe(node, next, &video->video_device_list) {		struct acpi_video_device * dev = container_of(node, struct acpi_video_device, entry);		status = acpi_video_device_get_state(dev, &state);		if (state & 0x2){			dev_next = container_of(node->next, struct acpi_video_device, entry);			dev_prev = container_of(node->prev, struct acpi_video_device, entry);			goto out;		}	}	dev_next = container_of(node->next, struct acpi_video_device, entry);	dev_prev = container_of(node->prev, struct acpi_video_device, entry);out:		switch (event) {	case ACPI_VIDEO_NOTIFY_CYCLE:	case ACPI_VIDEO_NOTIFY_NEXT_OUTPUT:		acpi_video_device_set_state(dev, 0);		acpi_video_device_set_state(dev_next, 0x80000001);		break;	case ACPI_VIDEO_NOTIFY_PREV_OUTPUT:		acpi_video_device_set_state(dev, 0);		acpi_video_device_set_state(dev_prev, 0x80000001);	default:		break;	}	return_VALUE(status);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/7334571f724df7a19f48cc974e991e00afde1e2f/video.c/buggy/drivers/acpi/video.c