diff options
Diffstat (limited to 'drivers/media/video/mt9t031.c')
-rw-r--r-- | drivers/media/video/mt9t031.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/mt9t031.c b/drivers/media/video/mt9t031.c index 1a9d53966d06..349d8e365530 100644 --- a/drivers/media/video/mt9t031.c +++ b/drivers/media/video/mt9t031.c | |||
@@ -326,14 +326,14 @@ static int mt9t031_try_fmt(struct soc_camera_device *icd, | |||
326 | } | 326 | } |
327 | 327 | ||
328 | static int mt9t031_get_chip_id(struct soc_camera_device *icd, | 328 | static int mt9t031_get_chip_id(struct soc_camera_device *icd, |
329 | struct v4l2_chip_ident *id) | 329 | struct v4l2_dbg_chip_ident *id) |
330 | { | 330 | { |
331 | struct mt9t031 *mt9t031 = container_of(icd, struct mt9t031, icd); | 331 | struct mt9t031 *mt9t031 = container_of(icd, struct mt9t031, icd); |
332 | 332 | ||
333 | if (id->match_type != V4L2_CHIP_MATCH_I2C_ADDR) | 333 | if (id->match.type != V4L2_CHIP_MATCH_I2C_ADDR) |
334 | return -EINVAL; | 334 | return -EINVAL; |
335 | 335 | ||
336 | if (id->match_chip != mt9t031->client->addr) | 336 | if (id->match.addr != mt9t031->client->addr) |
337 | return -ENODEV; | 337 | return -ENODEV; |
338 | 338 | ||
339 | id->ident = mt9t031->model; | 339 | id->ident = mt9t031->model; |
@@ -344,14 +344,14 @@ static int mt9t031_get_chip_id(struct soc_camera_device *icd, | |||
344 | 344 | ||
345 | #ifdef CONFIG_VIDEO_ADV_DEBUG | 345 | #ifdef CONFIG_VIDEO_ADV_DEBUG |
346 | static int mt9t031_get_register(struct soc_camera_device *icd, | 346 | static int mt9t031_get_register(struct soc_camera_device *icd, |
347 | struct v4l2_register *reg) | 347 | struct v4l2_dbg_register *reg) |
348 | { | 348 | { |
349 | struct mt9t031 *mt9t031 = container_of(icd, struct mt9t031, icd); | 349 | struct mt9t031 *mt9t031 = container_of(icd, struct mt9t031, icd); |
350 | 350 | ||
351 | if (reg->match_type != V4L2_CHIP_MATCH_I2C_ADDR || reg->reg > 0xff) | 351 | if (reg->match.type != V4L2_CHIP_MATCH_I2C_ADDR || reg->reg > 0xff) |
352 | return -EINVAL; | 352 | return -EINVAL; |
353 | 353 | ||
354 | if (reg->match_chip != mt9t031->client->addr) | 354 | if (reg->match.addr != mt9t031->client->addr) |
355 | return -ENODEV; | 355 | return -ENODEV; |
356 | 356 | ||
357 | reg->val = reg_read(icd, reg->reg); | 357 | reg->val = reg_read(icd, reg->reg); |
@@ -363,14 +363,14 @@ static int mt9t031_get_register(struct soc_camera_device *icd, | |||
363 | } | 363 | } |
364 | 364 | ||
365 | static int mt9t031_set_register(struct soc_camera_device *icd, | 365 | static int mt9t031_set_register(struct soc_camera_device *icd, |
366 | struct v4l2_register *reg) | 366 | struct v4l2_dbg_register *reg) |
367 | { | 367 | { |
368 | struct mt9t031 *mt9t031 = container_of(icd, struct mt9t031, icd); | 368 | struct mt9t031 *mt9t031 = container_of(icd, struct mt9t031, icd); |
369 | 369 | ||
370 | if (reg->match_type != V4L2_CHIP_MATCH_I2C_ADDR || reg->reg > 0xff) | 370 | if (reg->match.type != V4L2_CHIP_MATCH_I2C_ADDR || reg->reg > 0xff) |
371 | return -EINVAL; | 371 | return -EINVAL; |
372 | 372 | ||
373 | if (reg->match_chip != mt9t031->client->addr) | 373 | if (reg->match.addr != mt9t031->client->addr) |
374 | return -ENODEV; | 374 | return -ENODEV; |
375 | 375 | ||
376 | if (reg_write(icd, reg->reg, reg->val) < 0) | 376 | if (reg_write(icd, reg->reg, reg->val) < 0) |