Lines Matching refs:switches
183 struct input_dev *switches;
455 /* Setup input device for switches */
456 priv->switches = devm_input_allocate_device(&device->dev);
457 if (!priv->switches)
460 __set_bit(EV_SW, priv->switches->evbit);
461 __set_bit(SW_TABLET_MODE, priv->switches->swbit);
463 priv->switches->name = "Intel HID switches";
464 priv->switches->id.bustype = BUS_HOST;
465 return input_register_device(priv->switches);
479 input_report_switch(priv->switches, SW_TABLET_MODE, m);
480 input_sync(priv->switches);
514 if (!priv->switches && enable_sw_tablet_mode == TABLET_SW_AT_EVENT &&
516 dev_info(&device->dev, "switch event received, enable switches supports\n");
519 pr_err("Failed to setup Intel HID switches\n");
540 report_tablet_mode_event(priv->switches, event);
580 if (report_tablet_mode_event(priv->switches, event))
680 /* Setup switches for devices that we know VGBS return correctly */
682 dev_info(&device->dev, "platform supports switches\n");
685 pr_err("Failed to setup Intel HID switches\n");