Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02fcaaa3 authored by Andy Walls's avatar Andy Walls Committed by Mauro Carvalho Chehab
Browse files

[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.

Signed-off-by: default avatarAndy Walls <awalls@md.metrocast.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 86e52428
Loading
Loading
Loading
Loading
+4 −10
Original line number Original line Diff line number Diff line
@@ -131,7 +131,6 @@ static struct mutex tx_data_lock;
/* module parameters */
/* module parameters */
static int debug;	/* debug output */
static int debug;	/* debug output */
static int disable_rx;	/* disable RX device */
static int disable_rx;	/* disable RX device */
static int disable_tx;	/* disable TX device */
static int minor = -1;	/* minor number */
static int minor = -1;	/* minor number */


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


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


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


module_param(disable_rx, bool, 0644);
module_param(disable_rx, bool, 0644);
MODULE_PARM_DESC(disable_rx, "Disable the IR receiver device");
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");