Skip to content

Commit

Permalink
drivers: sensor: mmc56x3_async.c fix missing break
Browse files Browse the repository at this point in the history
coverity complains of a missing break statement in SENSOR_CHAN_ALL case
this is fixed by adding __attribute__((fallthrough))

Signed-off-by: Jilay Pandya <[email protected]>
  • Loading branch information
jilaypandya committed Dec 21, 2024
1 parent 1a63360 commit fd8cb0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/sensor/memsic/mmc56x3/mmc56x3_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ void mmc56x3_submit_sync(struct rtio_iodev_sqe *iodev_sqe)
case SENSOR_CHAN_MAGN_Z:
edata->has_magn_z = 1;
break;
case SENSOR_CHAN_MAGN_XYZ:
edata->has_magn_x = 1;
edata->has_magn_y = 1;
edata->has_magn_z = 1;
break;
case SENSOR_CHAN_ALL:
edata->has_temp = 1;
case SENSOR_CHAN_MAGN_XYZ:
edata->has_magn_x = 1;
edata->has_magn_y = 1;
edata->has_magn_z = 1;
Expand Down

0 comments on commit fd8cb0c

Please sign in to comment.