drivers: sensor: nxp: kinetis: temp: fix memset() length

Use the correct buffer size when calling memset().

Fixes: #73093

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2024-05-21 15:35:03 +00:00 committed by Anas Nashif
commit 59402fd82e

View file

@ -159,7 +159,7 @@ static int temp_kinetis_init(const struct device *dev)
},
};
memset(&data->buffer, 0, ARRAY_SIZE(data->buffer));
memset(&data->buffer, 0, sizeof(data->buffer));
if (!device_is_ready(config->adc)) {
LOG_ERR("ADC device is not ready");