/* Open all available devices so they can all be multiplexed in one. stream. Note that this function is called with mousedev_mix->mutex held.  */
static void mixdev_open_devices(void)
/* Open all available devices so they can all be multiplexed in one. stream. Note that this function is called with mousedev_mix->mutex held.  */
static void mixdev_open_devices(void)
{
	struct mousedev *mousedev;
	if (mousedev_mix->open++)
		return;
	list_for_each_entry(mousedev, &mousedev_mix_list, mixdev_node) {
		if (!mousedev->mixdev_open) {
			if (mousedev_open_device(mousedev))
				continue;
			mousedev->mixdev_open = 1;
		}
	}
}