mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
iio: accel: kionix-kx022a: Warn on failed matches and assume compatibility
Avoid error returns on a failure to match and instead just warn with assumption that we have a correct dt-binding telling us that some new device with a different ID is backwards compatible. Acked-by: Matti Vaittinen <mazziesaccount@gmail.com> Signed-off-by: Mehdi Djait <mehdi.djait.k@gmail.com> Link: https://lore.kernel.org/r/b587cfec2f3350623277005f62121864bee857c7.1694867379.git.mehdi.djait.k@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
cfdb1e2875
commit
8abacef3b7
|
|
@ -1025,10 +1025,8 @@ int kx022a_probe_internal(struct device *dev)
|
|||
if (ret)
|
||||
return dev_err_probe(dev, ret, "Failed to access sensor\n");
|
||||
|
||||
if (chip_id != KX022A_ID) {
|
||||
dev_err(dev, "unsupported device 0x%x\n", chip_id);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (chip_id != KX022A_ID)
|
||||
dev_warn(dev, "unknown device 0x%x\n", chip_id);
|
||||
|
||||
irq = fwnode_irq_get_byname(fwnode, "INT1");
|
||||
if (irq > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user