Commit b3508a2b authored by Kaustabh Chakraborty's avatar Kaustabh Chakraborty Committed by Jonathan Cameron

iio: light: stk3310: relax chipid check warning

In order to allow newer devices which are compatible with existing
sensors, issuing a warning for an unknown chipid indicates that
something has gone wrong with the init process, which isn't ideal.
Swap it with a friendlier info message to get things right.
Suggested-by: default avatarConor Dooley <conor@kernel.org>
Signed-off-by: default avatarKaustabh Chakraborty <kauschluss@disroot.org>
Link: https://patch.msgid.link/20240727-stk3310-v4-1-02497b1407ba@disroot.orgSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 02e0a02c
...@@ -496,7 +496,7 @@ static int stk3310_init(struct iio_dev *indio_dev) ...@@ -496,7 +496,7 @@ static int stk3310_init(struct iio_dev *indio_dev)
ret = stk3310_check_chip_id(chipid); ret = stk3310_check_chip_id(chipid);
if (ret < 0) if (ret < 0)
dev_warn(&client->dev, "unknown chip id: 0x%x\n", chipid); dev_info(&client->dev, "new unknown chip id: 0x%x\n", chipid);
state = STK3310_STATE_EN_ALS | STK3310_STATE_EN_PS; state = STK3310_STATE_EN_ALS | STK3310_STATE_EN_PS;
ret = stk3310_set_state(data, state); ret = stk3310_set_state(data, state);
......
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