Tag: 79d2a6bd14b117f140817b7d258a54bb5c963473

staging:iio:tsl2x7x: Fix client data inconsistency

Author: Lars-Peter Clausen <lars@metafoo.de> In probe the I2C client data is set to the iio_dev struct in probe(), but assumed to be the tsl2X7X_chip struct in remove(). Fix this by reading the client data back as iio_dev as well. The issue has been discovered using the following coccinelle patch: // @r1@ type T; T data; …

Continue reading