The po1030 read sensor are currently returning the contents of the address+1 fix the probing of the sensor to cope with this. Obviously this needs to be tracked down and fixed.
Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
int po1030_probe(struct sd *sd)
{
- u8 dev_id_h = 0, dev_id_l = 0, i;
+ u8 dev_id_h = 0, i;
s32 *sensor_settings;
if (force_sensor) {
if (m5602_read_sensor(sd, PO1030_DEVID_H, &dev_id_h, 1))
return -ENODEV;
- if (m5602_read_sensor(sd, PO1030_DEVID_L, &dev_id_l, 1))
- return -ENODEV;
-
- if ((dev_id_h == 0x10) && (dev_id_l == 0x30)) {
+ if (dev_id_h == 0x30) {
info("Detected a po1030 sensor");
goto sensor_found;
}