Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Conor Dooley <conor@kernel.org>
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Link: https://patch.msgid.link/20240727-stk3310-v4-1-02497b1407ba@disroot.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Kaustabh Chakraborty and committed by
Jonathan Cameron
b3508a2b 02e0a02c

+1 -1
+1 -1
drivers/iio/light/stk3310.c
··· 496 496 497 497 ret = stk3310_check_chip_id(chipid); 498 498 if (ret < 0) 499 - dev_warn(&client->dev, "unknown chip id: 0x%x\n", chipid); 499 + dev_info(&client->dev, "new unknown chip id: 0x%x\n", chipid); 500 500 501 501 state = STK3310_STATE_EN_ALS | STK3310_STATE_EN_PS; 502 502 ret = stk3310_set_state(data, state);