Commit 858c5dfc authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Lee Jones

backlight: adp8860: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 30000d80
...@@ -690,6 +690,7 @@ static int adp8860_probe(struct i2c_client *client, ...@@ -690,6 +690,7 @@ static int adp8860_probe(struct i2c_client *client,
switch (ADP8860_MANID(reg_val)) { switch (ADP8860_MANID(reg_val)) {
case ADP8863_MANUFID: case ADP8863_MANUFID:
data->gdwn_dis = !!pdata->gdwn_dis; data->gdwn_dis = !!pdata->gdwn_dis;
/* fall through */
case ADP8860_MANUFID: case ADP8860_MANUFID:
data->en_ambl_sens = !!pdata->en_ambl_sens; data->en_ambl_sens = !!pdata->en_ambl_sens;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment