drivers: iio: accel: Use warning if invalid device id is detected

Use warning instead of failing driver probe if invalid device id is
detected for ADXL355 device.

Signed-off-by: Ramona Bolboaca <ramona.bolboaca@analog.com>
Link: https://lore.kernel.org/r/20221031105129.47740-2-ramona.bolboaca@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Ramona Bolboaca 2022-10-31 12:51:27 +02:00 committed by Jonathan Cameron
parent 9b4901528f
commit 75347e30f1
1 changed files with 2 additions and 4 deletions

View File

@ -262,10 +262,8 @@ static int adxl355_setup(struct adxl355_data *data)
if (ret)
return ret;
if (regval != ADXL355_PARTID_VAL) {
dev_err(data->dev, "Invalid DEV ID 0x%02x\n", regval);
return -ENODEV;
}
if (regval != ADXL355_PARTID_VAL)
dev_warn(data->dev, "Invalid DEV ID 0x%02x\n", regval);
/*
* Perform a software reset to make sure the device is in a consistent