Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357107
b: refs/heads/master
c: b441d03
h: refs/heads/master
i:
  357105: c3d9e21
  357103: e1d0bbf
v: v3
  • Loading branch information
YAMANE Toshiaki authored and Mauro Carvalho Chehab committed Dec 21, 2012
1 parent b875f8f commit 857a81b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b91c78e354711ffc8fe26b53be85706dc90918fa
refs/heads/master: b441d03331cabcf14352465b7b0951f0c8d69481
24 changes: 13 additions & 11 deletions trunk/drivers/staging/media/go7007/wis-tw2804.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,30 +128,32 @@ static int wis_tw2804_command(struct i2c_client *client,
int *input = arg;

if (*input < 0 || *input > 3) {
printk(KERN_ERR "wis-tw2804: channel %d is not "
"between 0 and 3!\n", *input);
dev_err(&client->dev,
"channel %d is not between 0 and 3!\n", *input);
return 0;
}
dec->channel = *input;
printk(KERN_DEBUG "wis-tw2804: initializing TW2804 "
"channel %d\n", dec->channel);
dev_dbg(&client->dev, "initializing TW2804 channel %d\n",
dec->channel);
if (dec->channel == 0 &&
write_regs(client, global_registers, 0) < 0) {
printk(KERN_ERR "wis-tw2804: error initializing "
"TW2804 global registers\n");
dev_err(&client->dev,
"error initializing TW2804 global registers\n");
return 0;
}
if (write_regs(client, channel_registers, dec->channel) < 0) {
printk(KERN_ERR "wis-tw2804: error initializing "
"TW2804 channel %d\n", dec->channel);
dev_err(&client->dev,
"error initializing TW2804 channel %d\n",
dec->channel);
return 0;
}
return 0;
}

if (dec->channel < 0) {
printk(KERN_DEBUG "wis-tw2804: ignoring command %08x until "
"channel number is set\n", cmd);
dev_dbg(&client->dev,
"ignoring command %08x until channel number is set\n",
cmd);
return 0;
}

Expand Down Expand Up @@ -311,7 +313,7 @@ static int wis_tw2804_probe(struct i2c_client *client,
dec->hue = 128;
i2c_set_clientdata(client, dec);

printk(KERN_DEBUG "wis-tw2804: creating TW2804 at address %d on %s\n",
dev_dbg(&client->dev, "creating TW2804 at address %d on %s\n",
client->addr, adapter->name);

return 0;
Expand Down

0 comments on commit 857a81b

Please sign in to comment.