Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89223a2b authored by Marcus Folkesson's avatar Marcus Folkesson Committed by Dmitry Torokhov
Browse files

Input: as5011 - avoid using __set_bit() for capabilities



input_set_capability() and input_set_abs_param() will do it for you.

Signed-off-by: default avatarMarcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent a0130803
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -269,9 +269,7 @@ static int as5011_probe(struct i2c_client *client,
	input_dev->id.bustype = BUS_I2C;
	input_dev->dev.parent = &client->dev;

	__set_bit(EV_KEY, input_dev->evbit);
	__set_bit(EV_ABS, input_dev->evbit);
	__set_bit(BTN_JOYSTICK, input_dev->keybit);
	input_set_capability(input_dev, EV_KEY, BTN_JOYSTICK);

	input_set_abs_params(input_dev, ABS_X,
		AS5011_MIN_AXIS, AS5011_MAX_AXIS, AS5011_FUZZ, AS5011_FLAT);