/* Close all devices that were opened as part of multiplexed device. Note that this function is called with mousedev_mix->mutex held.  */
static void mixdev_close_devices(void)
/* Close all devices that were opened as part of multiplexed device. Note that this function is called with mousedev_mix->mutex held.  */
static void mixdev_close_devices(void)
{
	struct mousedev *mousedev;
	if (--mousedev_mix->open)
		return;
	list_for_each_entry(mousedev, &mousedev_mix_list, mixdev_node) {
		if (mousedev->mixdev_open) {
			mousedev->mixdev_open = 0;
			mousedev_close_device(mousedev);
		}
	}
}