drivers: sensor: adi: adxl362: change return type of ret variable

Updated the return type of the 'ret' variable in the
adxl362_attr_set_thresh function to int

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-07 21:04:07 +02:00 committed by Dan Kalowsky
commit ba17577d7c

View file

@ -292,7 +292,7 @@ static int adxl362_attr_set_thresh(const struct device *dev,
{
uint8_t reg;
uint16_t threshold = val->val1;
size_t ret;
int ret;
if (chan != SENSOR_CHAN_ACCEL_X &&
chan != SENSOR_CHAN_ACCEL_Y &&