Lines Matching refs:switches_dev
73 struct input_dev *switches_dev; member
93 input_report_switch(priv->switches_dev, SW_TABLET_MODE, m); in detect_tablet_mode()
95 input_report_switch(priv->switches_dev, SW_DOCK, m); in detect_tablet_mode()
97 input_sync(priv->switches_dev); in detect_tablet_mode()
130 priv->switches_dev = devm_input_allocate_device(&device->dev); in intel_vbtn_input_setup()
131 if (!priv->switches_dev) in intel_vbtn_input_setup()
134 ret = sparse_keymap_setup(priv->switches_dev, intel_vbtn_switchmap, NULL); in intel_vbtn_input_setup()
138 priv->switches_dev->dev.parent = &device->dev; in intel_vbtn_input_setup()
139 priv->switches_dev->name = "Intel Virtual Switches"; in intel_vbtn_input_setup()
140 priv->switches_dev->id.bustype = BUS_HOST; in intel_vbtn_input_setup()
143 ret = input_register_device(priv->switches_dev); in intel_vbtn_input_setup()
170 } else if ((ke = sparse_keymap_entry_from_scancode(priv->switches_dev, event))) { in notify_handler()
177 ret = input_register_device(priv->switches_dev); in notify_handler()
183 input_dev = priv->switches_dev; in notify_handler()