Commit 709aeedc authored by Barnabás Czémán's avatar Barnabás Czémán Committed by Jonathan Cameron

iio: light: stk3310: relax failure to match id

Relax failure to match ID to a warning rather than probe fail.
This add abilty to use other compatible variants when chip id
is not defined in the driver.
Signed-off-by: default avatarBarnabás Czémán <trabarni@gmail.com>
Link: https://lore.kernel.org/r/20240521-stk3311-v1-1-07a4966b355a@gmail.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 4d8c7da0
......@@ -477,8 +477,7 @@ static int stk3310_init(struct iio_dev *indio_dev)
chipid != STK3311_CHIP_ID_VAL &&
chipid != STK3311X_CHIP_ID_VAL &&
chipid != STK3335_CHIP_ID_VAL) {
dev_err(&client->dev, "invalid chip id: 0x%x\n", chipid);
return -ENODEV;
dev_warn(&client->dev, "unknown chip id: 0x%x\n", chipid);
}
state = STK3310_STATE_EN_ALS | STK3310_STATE_EN_PS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment