Skip to content

Commit ba17577

Browse files
kartbendkalowsk
authored andcommitted
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é <[email protected]>
1 parent e744c53 commit ba17577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/adi/adxl362/adxl362.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static int adxl362_attr_set_thresh(const struct device *dev,
292292
{
293293
uint8_t reg;
294294
uint16_t threshold = val->val1;
295-
size_t ret;
295+
int ret;
296296

297297
if (chan != SENSOR_CHAN_ACCEL_X &&
298298
chan != SENSOR_CHAN_ACCEL_Y &&

0 commit comments

Comments
 (0)