summaryrefslogtreecommitdiff
path: root/drivers/media/video/au0828/au0828-cards.c
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-04-19 04:39:11 +0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 21:09:43 +0400
commitbc3c613cef903e73e7365986a1943b0124350018 (patch)
tree4414b3d5d059d0e0faacafc03724e7cbf38c9fa1 /drivers/media/video/au0828/au0828-cards.c
parent9c26de555dd3c2cb9833b4d324150aa6b5547b91 (diff)
downloadlinux-bc3c613cef903e73e7365986a1943b0124350018.tar.xz
V4L/DVB (7625): au0828: Cleanup
Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/au0828/au0828-cards.c')
-rw-r--r--drivers/media/video/au0828/au0828-cards.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/media/video/au0828/au0828-cards.c b/drivers/media/video/au0828/au0828-cards.c
index cbcc6f81f460..eafdc552a9fa 100644
--- a/drivers/media/video/au0828/au0828-cards.c
+++ b/drivers/media/video/au0828/au0828-cards.c
@@ -22,12 +22,6 @@
#include "au0828.h"
#include "au0828-cards.h"
-#define _dbg(level, fmt, arg...)\
- do {\
- if (debug >= level) \
- printk(KERN_DEBUG DRIVER_NAME "/0: " fmt, ## arg);\
- } while (0)
-
struct au0828_board au0828_boards[] = {
[AU0828_BOARD_UNKNOWN] = {
.name = "Unknown board",
@@ -51,6 +45,8 @@ int au0828_tuner_callback(void *priv, int command, int arg)
{
struct au0828_dev *dev = priv;
+ dprintk(1, "%s()\n", __FUNCTION__);
+
switch(dev->board) {
case AU0828_BOARD_HAUPPAUGE_HVR850:
case AU0828_BOARD_HAUPPAUGE_HVR950Q:
@@ -97,9 +93,10 @@ static void hauppauge_eeprom(struct au0828_dev *dev, u8 *eeprom_data)
void au0828_card_setup(struct au0828_dev *dev)
{
-
static u8 eeprom[256];
+ dprintk(1, "%s()\n", __FUNCTION__);
+
if (dev->i2c_rc == 0) {
dev->i2c_client.addr = 0xa0 >> 1;
tveeprom_read(&dev->i2c_client, eeprom, sizeof(eeprom));
@@ -121,6 +118,8 @@ void au0828_card_setup(struct au0828_dev *dev)
*/
void au0828_gpio_setup(struct au0828_dev *dev)
{
+ dprintk(1, "%s()\n", __FUNCTION__);
+
switch(dev->board) {
case AU0828_BOARD_HAUPPAUGE_HVR850:
case AU0828_BOARD_HAUPPAUGE_HVR950Q: