aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/elo.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-06 15:31:02 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-08-08 11:23:27 -0700
commit17a4ed5545c5599852a5d75c5fb2c8e597943f99 (patch)
treed852233dfd7fd8de887eea7ee0afcd71bc61ebc6 /drivers/input/touchscreen/elo.c
parentInput: raydium_i2c_ts - use true and false for boolean values (diff)
downloadlinux-dev-17a4ed5545c5599852a5d75c5fb2c8e597943f99.tar.xz
linux-dev-17a4ed5545c5599852a5d75c5fb2c8e597943f99.zip
Input: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 2 was used: -Wimplicit-fallthrough=2 Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/input/touchscreen/elo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/elo.c b/drivers/input/touchscreen/elo.c
index 83433e8efff7..7f2942f3cec6 100644
--- a/drivers/input/touchscreen/elo.c
+++ b/drivers/input/touchscreen/elo.c
@@ -352,6 +352,7 @@ static int elo_connect(struct serio *serio, struct serio_driver *drv)
case 1: /* 6-byte protocol */
input_set_abs_params(input_dev, ABS_PRESSURE, 0, 15, 0, 0);
+ /* fall through */
case 2: /* 4-byte protocol */
input_set_abs_params(input_dev, ABS_X, 96, 4000, 0, 0);