Home
last modified time | relevance | path

Searched refs:as5011 (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/input/joystick/
H A Das5011.c116 struct as5011_device *as5011 = dev_id; in as5011_button_interrupt() local
117 int val = gpiod_get_value_cansleep(as5011->button_gpiod); in as5011_button_interrupt()
119 input_report_key(as5011->input_dev, BTN_JOYSTICK, !val); in as5011_button_interrupt()
120 input_sync(as5011->input_dev); in as5011_button_interrupt()
127 struct as5011_device *as5011 = dev_id; in as5011_axis_interrupt() local
131 error = as5011_i2c_read(as5011->i2c_client, AS5011_X_RES_INT, &x); in as5011_axis_interrupt()
135 error = as5011_i2c_read(as5011->i2c_client, AS5011_Y_RES_INT, &y); in as5011_axis_interrupt()
139 input_report_abs(as5011->input_dev, ABS_X, x); in as5011_axis_interrupt()
140 input_report_abs(as5011->input_dev, ABS_Y, y); in as5011_axis_interrupt()
141 input_sync(as5011->input_dev); in as5011_axis_interrupt()
[all …]
H A DMakefile12 obj-$(CONFIG_JOYSTICK_AS5011) += as5011.o
H A DKconfig281 module will be called as5011.