Lines Matching full:switches
142 struct input_dev *switches; member
415 /* Setup input device for switches */ in intel_hid_switches_setup()
416 priv->switches = devm_input_allocate_device(&device->dev); in intel_hid_switches_setup()
417 if (!priv->switches) in intel_hid_switches_setup()
420 __set_bit(EV_SW, priv->switches->evbit); in intel_hid_switches_setup()
421 __set_bit(SW_TABLET_MODE, priv->switches->swbit); in intel_hid_switches_setup()
423 priv->switches->name = "Intel HID switches"; in intel_hid_switches_setup()
424 priv->switches->id.bustype = BUS_HOST; in intel_hid_switches_setup()
425 return input_register_device(priv->switches); in intel_hid_switches_setup()
439 input_report_switch(priv->switches, SW_TABLET_MODE, m); in report_tablet_mode_state()
440 input_sync(priv->switches); in report_tablet_mode_state()
474 if (!priv->switches && priv->auto_add_switch && (event == 0xcc || event == 0xcd)) { in notify_handler()
475 dev_info(&device->dev, "switch event received, enable switches supports\n"); in notify_handler()
478 pr_err("Failed to setup Intel HID switches\n"); in notify_handler()
499 report_tablet_mode_event(priv->switches, event); in notify_handler()
539 if (report_tablet_mode_event(priv->switches, event)) in notify_handler()
632 /* Setup switches for devices that we know VGBS return correctly */ in intel_hid_probe()
634 dev_info(&device->dev, "platform supports switches\n"); in intel_hid_probe()
637 pr_err("Failed to setup Intel HID switches\n"); in intel_hid_probe()