diff options
author | Marcus Folkesson <marcus.folkesson@gmail.com> | 2018-05-08 15:20:44 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-05-08 15:36:02 -0700 |
commit | 89223a2b032998dbe14ced72dfc48e20849d93b4 (patch) | |
tree | 9de40573ab2120dc053d31336fc52d300b0349e3 | |
parent | a01308031c2647ed5f1c845104b73a8820a958a9 (diff) | |
download | linux-89223a2b032998dbe14ced72dfc48e20849d93b4.tar.gz linux-89223a2b032998dbe14ced72dfc48e20849d93b4.tar.bz2 linux-89223a2b032998dbe14ced72dfc48e20849d93b4.zip |
Input: as5011 - avoid using __set_bit() for capabilities
input_set_capability() and input_set_abs_param() will do it for you.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | drivers/input/joystick/as5011.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/joystick/as5011.c b/drivers/input/joystick/as5011.c index 005d852a06e9..f051993c568e 100644 --- a/drivers/input/joystick/as5011.c +++ b/drivers/input/joystick/as5011.c @@ -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); |