drivers: sensor: mmc56x3: add missing return statement

Added a missing return statement in the mmc56x3_decoder_get_size_info
causing incorrect size calculation for single channel data

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-06 23:34:52 +02:00 committed by Dan Kalowsky
commit 5fd565e6b4

View file

@ -55,6 +55,7 @@ static int mmc56x3_decoder_get_size_info(struct sensor_chan_spec chan_spec, size
case SENSOR_CHAN_MAGN_Z:
*base_size = sizeof(struct sensor_q31_sample_data);
*frame_size = sizeof(struct sensor_q31_sample_data);
return 0;
case SENSOR_CHAN_MAGN_XYZ:
*base_size = sizeof(struct sensor_three_axis_data);
*frame_size = sizeof(struct sensor_three_axis_sample_data);