Lines Matching refs:mode_switch
41 struct input_dev *mode_switch; member
104 input_report_switch(sw->mode_switch, SW_TABLET_MODE, tablet); in ssam_tablet_sw_update_workfn()
105 input_sync(sw->mode_switch); in ssam_tablet_sw_update_workfn()
149 sw->mode_switch = devm_input_allocate_device(&sdev->dev); in ssam_tablet_sw_probe()
150 if (!sw->mode_switch) in ssam_tablet_sw_probe()
153 sw->mode_switch->name = desc->dev.name; in ssam_tablet_sw_probe()
154 sw->mode_switch->phys = desc->dev.phys; in ssam_tablet_sw_probe()
155 sw->mode_switch->id.bustype = BUS_HOST; in ssam_tablet_sw_probe()
156 sw->mode_switch->dev.parent = &sdev->dev; in ssam_tablet_sw_probe()
159 input_set_capability(sw->mode_switch, EV_SW, SW_TABLET_MODE); in ssam_tablet_sw_probe()
160 input_report_switch(sw->mode_switch, SW_TABLET_MODE, tablet); in ssam_tablet_sw_probe()
162 status = input_register_device(sw->mode_switch); in ssam_tablet_sw_probe()