aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7164/saa7164-api.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2012-08-07 11:43:01 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-12 06:58:54 -0400
commit518c267f4ca4c45cc51bd582b4aef9f0b9f01eba (patch)
tree5d60d16011c1f53bbd126375531288ea4da66302 /drivers/media/video/saa7164/saa7164-api.c
parentb17d39453b40730cbfdb2cab9565f8ba8627b7f8 (diff)
[media] saa7164: use native print_hex_dump() instead of custom one
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7164/saa7164-api.c')
-rw-r--r--drivers/media/video/saa7164/saa7164-api.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/media/video/saa7164/saa7164-api.c b/drivers/media/video/saa7164/saa7164-api.c
index c8799fdaae67..eff7135cf0e8 100644
--- a/drivers/media/video/saa7164/saa7164-api.c
+++ b/drivers/media/video/saa7164/saa7164-api.c
@@ -670,7 +670,8 @@ int saa7164_api_set_dif(struct saa7164_port *port, u8 reg, u8 val)
670 if (ret != SAA_OK) 670 if (ret != SAA_OK)
671 printk(KERN_ERR "%s() error, ret(2) = 0x%x\n", __func__, ret); 671 printk(KERN_ERR "%s() error, ret(2) = 0x%x\n", __func__, ret);
672#if 0 672#if 0
673 saa7164_dumphex16(dev, buf, 16); 673 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_OFFSET, 16, 1, buf, 16,
674 false);
674#endif 675#endif
675 return ret == SAA_OK ? 0 : -EIO; 676 return ret == SAA_OK ? 0 : -EIO;
676} 677}
@@ -1352,7 +1353,8 @@ int saa7164_api_enum_subdevs(struct saa7164_dev *dev)
1352 } 1353 }
1353 1354
1354 if (saa_debug & DBGLVL_API) 1355 if (saa_debug & DBGLVL_API)
1355 saa7164_dumphex16(dev, buf, (buflen/16)*16); 1356 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_OFFSET, 16, 1, buf,
1357 buflen & ~15, false);
1356 1358
1357 saa7164_api_dump_subdevs(dev, buf, buflen); 1359 saa7164_api_dump_subdevs(dev, buf, buflen);
1358 1360
@@ -1403,7 +1405,8 @@ int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg,
1403 dprintk(DBGLVL_API, "%s() len = %d bytes\n", __func__, len); 1405 dprintk(DBGLVL_API, "%s() len = %d bytes\n", __func__, len);
1404 1406
1405 if (saa_debug & DBGLVL_I2C) 1407 if (saa_debug & DBGLVL_I2C)
1406 saa7164_dumphex16(dev, buf, 2 * 16); 1408 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_OFFSET, 16, 1, buf,
1409 32, false);
1407 1410
1408 ret = saa7164_cmd_send(bus->dev, unitid, GET_CUR, 1411 ret = saa7164_cmd_send(bus->dev, unitid, GET_CUR,
1409 EXU_REGISTER_ACCESS_CONTROL, len, &buf); 1412 EXU_REGISTER_ACCESS_CONTROL, len, &buf);
@@ -1411,7 +1414,8 @@ int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg,
1411 printk(KERN_ERR "%s() error, ret(2) = 0x%x\n", __func__, ret); 1414 printk(KERN_ERR "%s() error, ret(2) = 0x%x\n", __func__, ret);
1412 else { 1415 else {
1413 if (saa_debug & DBGLVL_I2C) 1416 if (saa_debug & DBGLVL_I2C)
1414 saa7164_dumphex16(dev, buf, sizeof(buf)); 1417 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_OFFSET, 16, 1,
1418 buf, sizeof(buf), false);
1415 memcpy(data, (buf + 2 * sizeof(u32) + reglen), datalen); 1419 memcpy(data, (buf + 2 * sizeof(u32) + reglen), datalen);
1416 } 1420 }
1417 1421
@@ -1471,7 +1475,8 @@ int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen,
1471 memcpy((buf + 2 * sizeof(u32)), data, datalen); 1475 memcpy((buf + 2 * sizeof(u32)), data, datalen);
1472 1476
1473 if (saa_debug & DBGLVL_I2C) 1477 if (saa_debug & DBGLVL_I2C)
1474 saa7164_dumphex16(dev, buf, sizeof(buf)); 1478 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_OFFSET, 16, 1,
1479 buf, sizeof(buf), false);
1475 1480
1476 ret = saa7164_cmd_send(bus->dev, unitid, SET_CUR, 1481 ret = saa7164_cmd_send(bus->dev, unitid, SET_CUR,
1477 EXU_REGISTER_ACCESS_CONTROL, len, &buf); 1482 EXU_REGISTER_ACCESS_CONTROL, len, &buf);