History

[media] lirc_zilog: Remove disable_tx module parameter

The only reason to use the lirc_zilog module is for IR Tx, so remove the possibility of disabling IR Tx. If the user needs only IR Rx, then the ir-kbd-i2c module works just fine, and doesn't require a "firmware" image.

Andy Walls committed 15 years ago

Commit 02fcaaa1 parent 86e52421 file · +4 −10Browse files

Showing the changes to drivers/staging/lirc (1 of 1 file). Show all

Unified · Split

drivers/staging/lirc/lirc_zilog.c+4−10
@@ -131,7 +131,6 @@ static struct mutex tx_data_lock; · 130 unmodified lines
131131 /* module parameters */
132132 static int debug; /* debug output */
133133 static int disable_rx; /* disable RX device */
134−static int disable_tx; /* disable TX device */
135134 static int minor = -1; /* minor number */
136135
137136 #define dprintk(fmt, args...) \
@@ -1218,12 +1217,10 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) · 1080 unmodified lines
12181217 */
12191218 client->addr = 0x70;
12201219
1221− if (!disable_tx) {
1222− if (i2c_master_recv(client, &buf, 1) == 1)
1223− have_tx = 1;
1224− dprintk("probe 0x70 @ %s: %s\n",
1225− adap->name, have_tx ? "success" : "failed");
1226− }
1220+ if (i2c_master_recv(client, &buf, 1) == 1)
1221+ have_tx = 1;
1222+ dprintk("probe 0x70 @ %s: %s\n",
1223+ adap->name, have_tx ? "success" : "failed");
12271224
12281225 if (!disable_rx) {
12291226 client->addr = 0x71;
@@ -1398,6 +1395,3 @@ MODULE_PARM_DESC(debug, "Enable debugging messages"); · 168 unmodified lines
13981395
13991396 module_param(disable_rx, bool, 0644);
14001397 MODULE_PARM_DESC(disable_rx, "Disable the IR receiver device");
1401−
1402−module_param(disable_tx, bool, 0644);
1403−MODULE_PARM_DESC(disable_tx, "Disable the IR transmitter device");