diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-i2c.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-i2c.c b/drivers/media/usb/cx231xx/cx231xx-i2c.c index 1a0d9efeb209..5a0604711be0 100644 --- a/drivers/media/usb/cx231xx/cx231xx-i2c.c +++ b/drivers/media/usb/cx231xx/cx231xx-i2c.c | |||
@@ -350,14 +350,15 @@ static int cx231xx_i2c_check_for_device(struct i2c_adapter *i2c_adap, | |||
350 | struct cx231xx *dev = bus->dev; | 350 | struct cx231xx *dev = bus->dev; |
351 | struct cx231xx_i2c_xfer_data req_data; | 351 | struct cx231xx_i2c_xfer_data req_data; |
352 | int status = 0; | 352 | int status = 0; |
353 | u8 buf[1]; | ||
353 | 354 | ||
354 | /* prepare xfer_data struct */ | 355 | /* prepare xfer_data struct */ |
355 | req_data.dev_addr = msg->addr; | 356 | req_data.dev_addr = msg->addr; |
356 | req_data.direction = msg->flags; | 357 | req_data.direction = I2C_M_RD; |
357 | req_data.saddr_len = 0; | 358 | req_data.saddr_len = 0; |
358 | req_data.saddr_dat = 0; | 359 | req_data.saddr_dat = 0; |
359 | req_data.buf_size = 0; | 360 | req_data.buf_size = 1; |
360 | req_data.p_buffer = NULL; | 361 | req_data.p_buffer = buf; |
361 | 362 | ||
362 | /* usb send command */ | 363 | /* usb send command */ |
363 | status = dev->cx231xx_send_usb_command(bus, &req_data); | 364 | status = dev->cx231xx_send_usb_command(bus, &req_data); |