Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232232
b: refs/heads/master
c: 02fcaaa
h: refs/heads/master
v: v3
  • Loading branch information
Andy Walls authored and Mauro Carvalho Chehab committed Jan 19, 2011
1 parent 4892817 commit 44e6ee1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: 86e52428eed0507a11ba03c5de731c763bd88480
refs/heads/master: 02fcaaa3a52b2bdad8a08a3ee5747f27f27df27d
14 changes: 4 additions & 10 deletions trunk/drivers/staging/lirc/lirc_zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ static struct mutex tx_data_lock;
/* module parameters */
static int debug; /* debug output */
static int disable_rx; /* disable RX device */
static int disable_tx; /* disable TX device */
static int minor = -1; /* minor number */

#define dprintk(fmt, args...) \
Expand Down Expand Up @@ -1218,12 +1217,10 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
*/
client->addr = 0x70;

if (!disable_tx) {
if (i2c_master_recv(client, &buf, 1) == 1)
have_tx = 1;
dprintk("probe 0x70 @ %s: %s\n",
adap->name, have_tx ? "success" : "failed");
}
if (i2c_master_recv(client, &buf, 1) == 1)
have_tx = 1;
dprintk("probe 0x70 @ %s: %s\n",
adap->name, have_tx ? "success" : "failed");

if (!disable_rx) {
client->addr = 0x71;
Expand Down Expand Up @@ -1398,6 +1395,3 @@ MODULE_PARM_DESC(debug, "Enable debugging messages");

module_param(disable_rx, bool, 0644);
MODULE_PARM_DESC(disable_rx, "Disable the IR receiver device");

module_param(disable_tx, bool, 0644);
MODULE_PARM_DESC(disable_tx, "Disable the IR transmitter device");

0 comments on commit 44e6ee1

Please sign in to comment.