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:
parent
e744c53fc0
commit
ba17577d7c
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ static int adxl362_attr_set_thresh(const struct device *dev,
|
||||||
{
|
{
|
||||||
uint8_t reg;
|
uint8_t reg;
|
||||||
uint16_t threshold = val->val1;
|
uint16_t threshold = val->val1;
|
||||||
size_t ret;
|
int ret;
|
||||||
|
|
||||||
if (chan != SENSOR_CHAN_ACCEL_X &&
|
if (chan != SENSOR_CHAN_ACCEL_X &&
|
||||||
chan != SENSOR_CHAN_ACCEL_Y &&
|
chan != SENSOR_CHAN_ACCEL_Y &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue