Input: Use fallthrough pseudo-keyword

Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200707180857.GA30600@embeddedor
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Gustavo A. R. Silva 2020-07-07 11:24:55 -07:00 committed by Dmitry Torokhov
parent 08a6caaed8
commit 6f49c4f5b9
30 changed files with 62 additions and 67 deletions

View File

@ -247,7 +247,7 @@ static unsigned char db9_saturn_read_packet(struct parport *port, unsigned char
db9_saturn_write_sub(port, type, 3, powered, 0); db9_saturn_write_sub(port, type, 3, powered, 0);
return data[0] = 0xe3; return data[0] = 0xe3;
} }
/* fall through */ fallthrough;
default: default:
return data[0]; return data[0];
} }
@ -267,14 +267,14 @@ static int db9_saturn_report(unsigned char id, unsigned char data[60], struct in
switch (data[j]) { switch (data[j]) {
case 0x16: /* multi controller (analog 4 axis) */ case 0x16: /* multi controller (analog 4 axis) */
input_report_abs(dev, db9_abs[5], data[j + 6]); input_report_abs(dev, db9_abs[5], data[j + 6]);
/* fall through */ fallthrough;
case 0x15: /* mission stick (analog 3 axis) */ case 0x15: /* mission stick (analog 3 axis) */
input_report_abs(dev, db9_abs[3], data[j + 4]); input_report_abs(dev, db9_abs[3], data[j + 4]);
input_report_abs(dev, db9_abs[4], data[j + 5]); input_report_abs(dev, db9_abs[4], data[j + 5]);
/* fall through */ fallthrough;
case 0x13: /* racing controller (analog 1 axis) */ case 0x13: /* racing controller (analog 1 axis) */
input_report_abs(dev, db9_abs[2], data[j + 3]); input_report_abs(dev, db9_abs[2], data[j + 3]);
/* fall through */ fallthrough;
case 0x34: /* saturn keyboard (udlr ZXC ASD QE Esc) */ case 0x34: /* saturn keyboard (udlr ZXC ASD QE Esc) */
case 0x02: /* digital pad (digital 2 axis + buttons) */ case 0x02: /* digital pad (digital 2 axis + buttons) */
input_report_abs(dev, db9_abs[0], !(data[j + 1] & 128) - !(data[j + 1] & 64)); input_report_abs(dev, db9_abs[0], !(data[j + 1] & 128) - !(data[j + 1] & 64));
@ -368,7 +368,7 @@ static void db9_timer(struct timer_list *t)
input_report_abs(dev2, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); input_report_abs(dev2, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1));
input_report_abs(dev2, ABS_Y, (data & DB9_DOWN ? 0 : 1) - (data & DB9_UP ? 0 : 1)); input_report_abs(dev2, ABS_Y, (data & DB9_DOWN ? 0 : 1) - (data & DB9_UP ? 0 : 1));
input_report_key(dev2, BTN_TRIGGER, ~data & DB9_FIRE1); input_report_key(dev2, BTN_TRIGGER, ~data & DB9_FIRE1);
/* fall through */ fallthrough;
case DB9_MULTI_0802: case DB9_MULTI_0802:

View File

@ -485,7 +485,7 @@ static void gc_multi_process_packet(struct gc *gc)
switch (pad->type) { switch (pad->type) {
case GC_MULTI2: case GC_MULTI2:
input_report_key(dev, BTN_THUMB, s & data[5]); input_report_key(dev, BTN_THUMB, s & data[5]);
/* fall through */ fallthrough;
case GC_MULTI: case GC_MULTI:
input_report_abs(dev, ABS_X, input_report_abs(dev, ABS_X,
@ -638,7 +638,7 @@ static void gc_psx_report_one(struct gc_pad *pad, unsigned char psx_type,
input_report_key(dev, BTN_THUMBL, ~data[0] & 0x04); input_report_key(dev, BTN_THUMBL, ~data[0] & 0x04);
input_report_key(dev, BTN_THUMBR, ~data[0] & 0x02); input_report_key(dev, BTN_THUMBR, ~data[0] & 0x02);
/* fall through */ fallthrough;
case GC_PSX_NEGCON: case GC_PSX_NEGCON:
case GC_PSX_ANALOG: case GC_PSX_ANALOG:
@ -872,7 +872,8 @@ static int gc_setup_pad(struct gc *gc, int idx, int pad_type)
case GC_SNES: case GC_SNES:
for (i = 4; i < 8; i++) for (i = 4; i < 8; i++)
input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]);
/* fall through */ fallthrough;
case GC_NES: case GC_NES:
for (i = 0; i < 4; i++) for (i = 0; i < 4; i++)
input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]);
@ -880,7 +881,8 @@ static int gc_setup_pad(struct gc *gc, int idx, int pad_type)
case GC_MULTI2: case GC_MULTI2:
input_set_capability(input_dev, EV_KEY, BTN_THUMB); input_set_capability(input_dev, EV_KEY, BTN_THUMB);
/* fall through */ fallthrough;
case GC_MULTI: case GC_MULTI:
input_set_capability(input_dev, EV_KEY, BTN_TRIGGER); input_set_capability(input_dev, EV_KEY, BTN_TRIGGER);
/* fall through */ /* fall through */

View File

@ -656,16 +656,19 @@ static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)
switch (i * m) { switch (i * m) {
case 60: case 60:
sw->number++; /* fall through */ sw->number++;
fallthrough;
case 45: /* Ambiguous packet length */ case 45: /* Ambiguous packet length */
if (j <= 40) { /* ID length less or eq 40 -> FSP */ if (j <= 40) { /* ID length less or eq 40 -> FSP */
case 43: case 43:
sw->type = SW_ID_FSP; sw->type = SW_ID_FSP;
break; break;
} }
sw->number++; /* fall through */ sw->number++;
fallthrough;
case 30: case 30:
sw->number++; /* fall through */ sw->number++;
fallthrough;
case 15: case 15:
sw->type = SW_ID_GP; sw->type = SW_ID_GP;
break; break;
@ -681,9 +684,11 @@ static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)
sw->type = SW_ID_PP; sw->type = SW_ID_PP;
break; break;
case 66: case 66:
sw->bits = 3; /* fall through */ sw->bits = 3;
fallthrough;
case 198: case 198:
sw->length = 22; /* fall through */ sw->length = 22;
fallthrough;
case 64: case 64:
sw->type = SW_ID_3DP; sw->type = SW_ID_3DP;
if (j == 160) if (j == 160)

View File

@ -146,7 +146,7 @@ static irqreturn_t spaceball_interrupt(struct serio *serio,
break; break;
} }
spaceball->escape = 0; spaceball->escape = 0;
/* fall through */ fallthrough;
case 'M': case 'M':
case 'Q': case 'Q':
case 'S': case 'S':
@ -154,7 +154,7 @@ static irqreturn_t spaceball_interrupt(struct serio *serio,
spaceball->escape = 0; spaceball->escape = 0;
data &= 0x1f; data &= 0x1f;
} }
/* fall through */ fallthrough;
default: default:
if (spaceball->escape) if (spaceball->escape)
spaceball->escape = 0; spaceball->escape = 0;
@ -220,13 +220,13 @@ static int spaceball_connect(struct serio *serio, struct serio_driver *drv)
input_dev->keybit[BIT_WORD(BTN_A)] |= BIT_MASK(BTN_A) | input_dev->keybit[BIT_WORD(BTN_A)] |= BIT_MASK(BTN_A) |
BIT_MASK(BTN_B) | BIT_MASK(BTN_C) | BIT_MASK(BTN_B) | BIT_MASK(BTN_C) |
BIT_MASK(BTN_MODE); BIT_MASK(BTN_MODE);
/* fall through */ fallthrough;
default: default:
input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_2) | input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_2) |
BIT_MASK(BTN_3) | BIT_MASK(BTN_4) | BIT_MASK(BTN_3) | BIT_MASK(BTN_4) |
BIT_MASK(BTN_5) | BIT_MASK(BTN_6) | BIT_MASK(BTN_5) | BIT_MASK(BTN_6) |
BIT_MASK(BTN_7) | BIT_MASK(BTN_8); BIT_MASK(BTN_7) | BIT_MASK(BTN_8);
/* fall through */ fallthrough;
case SPACEBALL_3003C: case SPACEBALL_3003C:
input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_1) | input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_1) |
BIT_MASK(BTN_8); BIT_MASK(BTN_8);

View File

@ -1016,7 +1016,7 @@ static int adp5589_probe(struct i2c_client *client,
switch (id->driver_data) { switch (id->driver_data) {
case ADP5585_02: case ADP5585_02:
kpad->support_row5 = true; kpad->support_row5 = true;
/* fall through */ fallthrough;
case ADP5585_01: case ADP5585_01:
kpad->is_adp5585 = true; kpad->is_adp5585 = true;
kpad->var = &const_adp5585; kpad->var = &const_adp5585;

View File

@ -1241,7 +1241,7 @@ static int atkbd_connect(struct serio *serio, struct serio_driver *drv)
case SERIO_8042_XL: case SERIO_8042_XL:
atkbd->translated = true; atkbd->translated = true;
/* Fall through */ fallthrough;
case SERIO_8042: case SERIO_8042:
if (serio->write) if (serio->write)

View File

@ -574,7 +574,6 @@ static int gpio_keys_setup_key(struct platform_device *pdev,
IRQ_TYPE_EDGE_RISING : IRQ_TYPE_EDGE_FALLING; IRQ_TYPE_EDGE_RISING : IRQ_TYPE_EDGE_FALLING;
break; break;
case EV_ACT_ANY: case EV_ACT_ANY:
/* fall through */
default: default:
/* /*
* For other cases, we are OK letting suspend/resume * For other cases, we are OK letting suspend/resume

View File

@ -575,8 +575,7 @@ static int iqs269_parse_chan(struct iqs269_private *iqs269,
case IQS269_LOCAL_CAP_SIZE_GLOBAL_0pF5: case IQS269_LOCAL_CAP_SIZE_GLOBAL_0pF5:
engine_a |= IQS269_CHx_ENG_A_LOCAL_CAP_SIZE; engine_a |= IQS269_CHx_ENG_A_LOCAL_CAP_SIZE;
fallthrough;
/* fall through */
case IQS269_LOCAL_CAP_SIZE_GLOBAL_ONLY: case IQS269_LOCAL_CAP_SIZE_GLOBAL_ONLY:
engine_b |= IQS269_CHx_ENG_B_LOCAL_CAP_ENABLE; engine_b |= IQS269_CHx_ENG_B_LOCAL_CAP_ENABLE;
@ -731,14 +730,12 @@ static int iqs269_parse_chan(struct iqs269_private *iqs269,
iqs269->switches[i].code = val; iqs269->switches[i].code = val;
iqs269->switches[i].enabled = true; iqs269->switches[i].enabled = true;
} }
fallthrough;
/* fall through */
case IQS269_CHx_HALL_INACTIVE: case IQS269_CHx_HALL_INACTIVE:
if (iqs269->hall_enable) if (iqs269->hall_enable)
break; break;
fallthrough;
/* fall through */
default: default:
iqs269->keycode[i * IQS269_NUM_CH + reg] = val; iqs269->keycode[i * IQS269_NUM_CH + reg] = val;
@ -1143,14 +1140,12 @@ static int iqs269_input_init(struct iqs269_private *iqs269)
sw_code, sw_code,
state & BIT(j)); state & BIT(j));
} }
fallthrough;
/* fall through */
case IQS269_CHx_HALL_INACTIVE: case IQS269_CHx_HALL_INACTIVE:
if (iqs269->hall_enable) if (iqs269->hall_enable)
continue; continue;
fallthrough;
/* fall through */
default: default:
if (keycode != KEY_RESERVED) if (keycode != KEY_RESERVED)
@ -1273,14 +1268,12 @@ static int iqs269_report(struct iqs269_private *iqs269)
input_report_switch(iqs269->keypad, input_report_switch(iqs269->keypad,
sw_code, sw_code,
state & BIT(j)); state & BIT(j));
fallthrough;
/* fall through */
case IQS269_CHx_HALL_INACTIVE: case IQS269_CHx_HALL_INACTIVE:
if (iqs269->hall_enable) if (iqs269->hall_enable)
continue; continue;
fallthrough;
/* fall through */
default: default:
input_report_key(iqs269->keypad, keycode, input_report_key(iqs269->keypad, keycode,

View File

@ -190,7 +190,7 @@ static int pwm_vibrator_probe(struct platform_device *pdev)
default: default:
dev_err(&pdev->dev, "Failed to request direction pwm: %d", err); dev_err(&pdev->dev, "Failed to request direction pwm: %d", err);
/* Fall through */ fallthrough;
case -EPROBE_DEFER: case -EPROBE_DEFER:
return err; return err;

View File

@ -124,7 +124,7 @@ static void xenkbd_handle_mt_event(struct xenkbd_info *info,
switch (mtouch->event_type) { switch (mtouch->event_type) {
case XENKBD_MT_EV_DOWN: case XENKBD_MT_EV_DOWN:
input_mt_report_slot_state(info->mtouch, MT_TOOL_FINGER, true); input_mt_report_slot_state(info->mtouch, MT_TOOL_FINGER, true);
/* fall through */ fallthrough;
case XENKBD_MT_EV_MOTION: case XENKBD_MT_EV_MOTION:
input_report_abs(info->mtouch, ABS_MT_POSITION_X, input_report_abs(info->mtouch, ABS_MT_POSITION_X,
@ -524,7 +524,7 @@ static void xenkbd_backend_changed(struct xenbus_device *dev,
case XenbusStateClosed: case XenbusStateClosed:
if (dev->state == XenbusStateClosed) if (dev->state == XenbusStateClosed)
break; break;
/* fall through - Missed the backend's CLOSING state */ fallthrough; /* Missed the backend's CLOSING state */
case XenbusStateClosing: case XenbusStateClosing:
xenbus_frontend_closed(dev); xenbus_frontend_closed(dev);
break; break;

View File

@ -458,7 +458,7 @@ static int atp_status_check(struct urb *urb)
dev->info->datalen, dev->urb->actual_length); dev->info->datalen, dev->urb->actual_length);
dev->overflow_warned = true; dev->overflow_warned = true;
} }
/* fall through */ fallthrough;
case -ECONNRESET: case -ECONNRESET:
case -ENOENT: case -ENOENT:
case -ESHUTDOWN: case -ESHUTDOWN:

View File

@ -1067,7 +1067,7 @@ static int cyapa_gen3_do_operational_check(struct cyapa *cyapa)
return error; return error;
} }
/* Fall through */ fallthrough;
case CYAPA_STATE_BL_IDLE: case CYAPA_STATE_BL_IDLE:
/* Try to get firmware version in bootloader mode. */ /* Try to get firmware version in bootloader mode. */
cyapa_gen3_bl_query_data(cyapa); cyapa_gen3_bl_query_data(cyapa);
@ -1078,7 +1078,7 @@ static int cyapa_gen3_do_operational_check(struct cyapa *cyapa)
return error; return error;
} }
/* Fall through */ fallthrough;
case CYAPA_STATE_OP: case CYAPA_STATE_OP:
/* /*
* Reading query data before going back to the full mode * Reading query data before going back to the full mode

View File

@ -2554,7 +2554,7 @@ static int cyapa_gen5_do_operational_check(struct cyapa *cyapa)
} }
cyapa->state = CYAPA_STATE_GEN5_APP; cyapa->state = CYAPA_STATE_GEN5_APP;
/* fall through */ fallthrough;
case CYAPA_STATE_GEN5_APP: case CYAPA_STATE_GEN5_APP:
/* /*

View File

@ -680,7 +680,7 @@ static int cyapa_gen6_operational_check(struct cyapa *cyapa)
} }
cyapa->state = CYAPA_STATE_GEN6_APP; cyapa->state = CYAPA_STATE_GEN6_APP;
/* fall through */ fallthrough;
case CYAPA_STATE_GEN6_APP: case CYAPA_STATE_GEN6_APP:
/* /*

View File

@ -383,7 +383,7 @@ static void elantech_report_absolute_v2(struct psmouse *psmouse)
*/ */
if (packet[3] & 0x80) if (packet[3] & 0x80)
fingers = 4; fingers = 4;
/* fall through */ fallthrough;
case 1: case 1:
/* /*
* byte 1: . . . . x11 x10 x9 x8 * byte 1: . . . . x11 x10 x9 x8
@ -1146,7 +1146,7 @@ static int elantech_set_input_params(struct psmouse *psmouse)
case 2: case 2:
__set_bit(BTN_TOOL_QUADTAP, dev->keybit); __set_bit(BTN_TOOL_QUADTAP, dev->keybit);
__set_bit(INPUT_PROP_SEMI_MT, dev->propbit); __set_bit(INPUT_PROP_SEMI_MT, dev->propbit);
/* fall through */ fallthrough;
case 3: case 3:
if (info->hw_version == 3) if (info->hw_version == 3)
elantech_set_buttonpad_prop(psmouse); elantech_set_buttonpad_prop(psmouse);
@ -1877,12 +1877,10 @@ static bool elantech_use_host_notify(struct psmouse *psmouse,
/* expected case */ /* expected case */
break; break;
case ETP_BUS_SMB_ALERT_ONLY: case ETP_BUS_SMB_ALERT_ONLY:
/* fall-through */
case ETP_BUS_PS2_SMB_ALERT: case ETP_BUS_PS2_SMB_ALERT:
psmouse_dbg(psmouse, "Ignoring SMBus provider through alert protocol.\n"); psmouse_dbg(psmouse, "Ignoring SMBus provider through alert protocol.\n");
break; break;
case ETP_BUS_SMB_HST_NTFY_ONLY: case ETP_BUS_SMB_HST_NTFY_ONLY:
/* fall-through */
case ETP_BUS_PS2_SMB_HST_NTFY: case ETP_BUS_PS2_SMB_HST_NTFY:
return true; return true;
default: default:

View File

@ -238,7 +238,7 @@ static void hgpk_spewing_hack(struct psmouse *psmouse,
/* we're not spewing, but this packet might be the start */ /* we're not spewing, but this packet might be the start */
priv->spew_flag = MAYBE_SPEWING; priv->spew_flag = MAYBE_SPEWING;
/* fall-through */ fallthrough;
case MAYBE_SPEWING: case MAYBE_SPEWING:
priv->spew_count++; priv->spew_count++;
@ -249,7 +249,7 @@ static void hgpk_spewing_hack(struct psmouse *psmouse,
/* excessive spew detected, request recalibration */ /* excessive spew detected, request recalibration */
priv->spew_flag = SPEW_DETECTED; priv->spew_flag = SPEW_DETECTED;
/* fall-through */ fallthrough;
case SPEW_DETECTED: case SPEW_DETECTED:
/* only recalibrate when the overall delta to the cursor /* only recalibrate when the overall delta to the cursor

View File

@ -105,7 +105,7 @@ static void navpoint_packet(struct navpoint *navpoint)
case 0x19: /* Module 0, Hello packet */ case 0x19: /* Module 0, Hello packet */
if ((navpoint->data[1] & 0xf0) == 0x10) if ((navpoint->data[1] & 0xf0) == 0x10)
break; break;
/* FALLTHROUGH */ fallthrough;
default: default:
dev_warn(navpoint->dev, dev_warn(navpoint->dev,
"spurious packet: data=0x%02x,0x%02x,...\n", "spurious packet: data=0x%02x,0x%02x,...\n",

View File

@ -794,7 +794,7 @@ static psmouse_ret_t fsp_process_byte(struct psmouse *psmouse)
/* on-pad click, filter it if necessary */ /* on-pad click, filter it if necessary */
if ((ad->flags & FSPDRV_FLAG_EN_OPC) != FSPDRV_FLAG_EN_OPC) if ((ad->flags & FSPDRV_FLAG_EN_OPC) != FSPDRV_FLAG_EN_OPC)
packet[0] &= ~FSP_PB0_LBTN; packet[0] &= ~FSP_PB0_LBTN;
/* fall through */ fallthrough;
case FSP_PKT_TYPE_NORMAL: case FSP_PKT_TYPE_NORMAL:
/* normal packet */ /* normal packet */

View File

@ -128,7 +128,7 @@ static void sermouse_process_ms(struct sermouse *sermouse, signed char data)
case SERIO_MS: case SERIO_MS:
sermouse->type = SERIO_MP; sermouse->type = SERIO_MP;
/* fall through */ fallthrough;
case SERIO_MP: case SERIO_MP:
if ((data >> 2) & 3) break; /* M++ Wireless Extension packet. */ if ((data >> 2) & 3) break; /* M++ Wireless Extension packet. */
@ -139,7 +139,7 @@ static void sermouse_process_ms(struct sermouse *sermouse, signed char data)
case SERIO_MZP: case SERIO_MZP:
case SERIO_MZPP: case SERIO_MZPP:
input_report_key(dev, BTN_SIDE, (data >> 5) & 1); input_report_key(dev, BTN_SIDE, (data >> 5) & 1);
/* fall through */ fallthrough;
case SERIO_MZ: case SERIO_MZ:
input_report_key(dev, BTN_MIDDLE, (data >> 4) & 1); input_report_key(dev, BTN_MIDDLE, (data >> 4) & 1);

View File

@ -562,7 +562,7 @@ static irqreturn_t i8042_interrupt(int irq, void *dev_id)
str = last_str; str = last_str;
break; break;
} }
/* fall through - report timeout */ fallthrough; /* report timeout */
case 0xfc: case 0xfc:
case 0xfd: case 0xfd:
case 0xfe: dfl = SERIO_TIMEOUT; data = 0xfe; break; case 0xfe: dfl = SERIO_TIMEOUT; data = 0xfe; break;

View File

@ -418,7 +418,7 @@ bool ps2_handle_ack(struct ps2dev *ps2dev, u8 data)
ps2dev->nak = 0; ps2dev->nak = 0;
break; break;
} }
/* Fall through */ fallthrough;
default: default:
/* /*
* Do not signal errors if we get unexpected reply while * Do not signal errors if we get unexpected reply while

View File

@ -247,7 +247,7 @@ void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *k
case KE_SW: case KE_SW:
value = ke->sw.value; value = ke->sw.value;
/* fall through */ fallthrough;
case KE_VSW: case KE_VSW:
input_report_switch(dev, ke->sw.code, value); input_report_switch(dev, ke->sw.code, value);

View File

@ -676,8 +676,8 @@ static void gtco_urb_callback(struct urb *urbinfo)
/* Mask out the Y tilt value used for pressure */ /* Mask out the Y tilt value used for pressure */
device->buffer[7] = (u8)((device->buffer[7]) & 0x7F); device->buffer[7] = (u8)((device->buffer[7]) & 0x7F);
fallthrough;
/* Fall thru */
case 4: case 4:
/* Tilt */ /* Tilt */
input_report_abs(inputdev, ABS_TILT_X, input_report_abs(inputdev, ABS_TILT_X,
@ -685,8 +685,8 @@ static void gtco_urb_callback(struct urb *urbinfo)
input_report_abs(inputdev, ABS_TILT_Y, input_report_abs(inputdev, ABS_TILT_Y,
sign_extend32(device->buffer[7], 6)); sign_extend32(device->buffer[7], 6));
fallthrough;
/* Fall thru */
case 2: case 2:
case 3: case 3:
/* Convert buttons, only 5 bits possible */ /* Convert buttons, only 5 bits possible */
@ -695,8 +695,8 @@ static void gtco_urb_callback(struct urb *urbinfo)
/* We don't apply any meaning to the bitmask, /* We don't apply any meaning to the bitmask,
just report */ just report */
input_event(inputdev, EV_MSC, MSC_SERIAL, val); input_event(inputdev, EV_MSC, MSC_SERIAL, val);
fallthrough;
/* Fall thru */
case 1: case 1:
/* All reports have X and Y coords in the same place */ /* All reports have X and Y coords in the same place */
val = get_unaligned_le16(&device->buffer[1]); val = get_unaligned_le16(&device->buffer[1]);

View File

@ -146,7 +146,7 @@ static void pegasus_parse_packet(struct pegasus *pegasus)
/* xy data */ /* xy data */
case BATTERY_LOW: case BATTERY_LOW:
dev_warn_once(&dev->dev, "Pen battery low\n"); dev_warn_once(&dev->dev, "Pen battery low\n");
/* fall through */ fallthrough;
case BATTERY_NO_REPORT: case BATTERY_NO_REPORT:
case BATTERY_GOOD: case BATTERY_GOOD:

View File

@ -288,7 +288,7 @@ static int edt_ft5x06_register_write(struct edt_ft5x06_ts_data *tsdata,
wrbuf[3] = wrbuf[0] ^ wrbuf[1] ^ wrbuf[2]; wrbuf[3] = wrbuf[0] ^ wrbuf[1] ^ wrbuf[2];
return edt_ft5x06_ts_readwrite(tsdata->client, 4, return edt_ft5x06_ts_readwrite(tsdata->client, 4,
wrbuf, 0, NULL); wrbuf, 0, NULL);
/* fallthrough */
case EDT_M09: case EDT_M09:
case EDT_M12: case EDT_M12:
case EV_FT: case EV_FT:
@ -330,7 +330,6 @@ static int edt_ft5x06_register_read(struct edt_ft5x06_ts_data *tsdata,
} }
break; break;
/* fallthrough */
case EDT_M09: case EDT_M09:
case EDT_M12: case EDT_M12:
case EV_FT: case EV_FT:

View File

@ -955,7 +955,7 @@ static irqreturn_t elants_i2c_irq(int irq, void *_dev)
break; break;
ts->state = ELAN_STATE_NORMAL; ts->state = ELAN_STATE_NORMAL;
/* fall through */ fallthrough;
case ELAN_STATE_NORMAL: case ELAN_STATE_NORMAL:

View File

@ -348,7 +348,7 @@ static int elo_connect(struct serio *serio, struct serio_driver *drv)
case 1: /* 6-byte protocol */ case 1: /* 6-byte protocol */
input_set_abs_params(input_dev, ABS_PRESSURE, 0, 15, 0, 0); input_set_abs_params(input_dev, ABS_PRESSURE, 0, 15, 0, 0);
/* fall through */ fallthrough;
case 2: /* 4-byte protocol */ case 2: /* 4-byte protocol */
input_set_abs_params(input_dev, ABS_X, 96, 4000, 0, 0); input_set_abs_params(input_dev, ABS_X, 96, 4000, 0, 0);

View File

@ -289,7 +289,7 @@ static int iqs5xx_bl_cmd(struct i2c_client *client, u8 bl_cmd, u16 bl_addr)
break; break;
case IQS5XX_BL_CMD_EXEC: case IQS5XX_BL_CMD_EXEC:
usleep_range(10000, 10100); usleep_range(10000, 10100);
/* fall through */ fallthrough;
default: default:
return 0; return 0;
} }

View File

@ -130,7 +130,6 @@ static irqreturn_t max11801_ts_interrupt(int irq, void *dev_id)
switch (buf[1] & EVENT_TAG_MASK) { switch (buf[1] & EVENT_TAG_MASK) {
case EVENT_INIT: case EVENT_INIT:
/* fall through */
case EVENT_MIDDLE: case EVENT_MIDDLE:
input_report_abs(data->input_dev, ABS_X, x); input_report_abs(data->input_dev, ABS_X, x);
input_report_abs(data->input_dev, ABS_Y, y); input_report_abs(data->input_dev, ABS_Y, y);

View File

@ -255,7 +255,7 @@ static void stmfts_parse_events(struct stmfts_data *sdata)
case STMFTS_EV_SLEEP_OUT_CONTROLLER_READY: case STMFTS_EV_SLEEP_OUT_CONTROLLER_READY:
case STMFTS_EV_STATUS: case STMFTS_EV_STATUS:
complete(&sdata->cmd_done); complete(&sdata->cmd_done);
/* fall through */ fallthrough;
case STMFTS_EV_NO_EVENT: case STMFTS_EV_NO_EVENT:
case STMFTS_EV_DEBUG: case STMFTS_EV_DEBUG: