@@ -62,6 +62,9 @@ void ir_input_init(struct input_dev *dev
{
int i;
+ pr_info("%s: dev=%p, ir=%p, ir_type=%d, ir_codes=%p\n",
+ __func__, dev, ir, ir_type, ir_codes);
+
ir->ir_type = ir_type;
if (ir_codes)
memcpy(ir->ir_codes, ir_codes, sizeof(ir->ir_codes));
@@ -69,8 +72,11 @@ void ir_input_init(struct input_dev *dev
dev->keycode = ir->ir_codes;
dev->keycodesize = sizeof(IR_KEYTAB_TYPE);
dev->keycodemax = IR_KEYTAB_SIZE;
- for (i = 0; i < IR_KEYTAB_SIZE; i++)
+ for (i = 0; i < IR_KEYTAB_SIZE; i++) {
+ pr_info("%s: [i=%d] Setting bit %u of dev->keybit\n",
+ __func__, i, ir->ir_codes[i]);
set_bit(ir->ir_codes[i], dev->keybit);
+ }
clear_bit(0, dev->keybit);
set_bit(EV_KEY, dev->evbit);
@@ -317,6 +317,7 @@ static int ir_probe(struct i2c_client *c
ir->input = input_dev;
i2c_set_clientdata(client, ir);
+ pr_info("%s: addr=0x%02hx\n", __func__, addr);
switch(addr) {
case 0x64:
name = "Pixelview";
@@ -385,6 +386,9 @@ static int ir_probe(struct i2c_client *c
goto err_out_free;
}
+ pr_info("%s: [before override] ir_codes=%p, name=%s, get_key=%p\n",
+ __func__, ir_codes, name, ir->get_key);
+
/* Let the caller override settings */
if (client->dev.platform_data) {
const struct IR_i2c_init_data *init_data =
@@ -393,6 +397,8 @@ static int ir_probe(struct i2c_client *c
ir_codes = init_data->ir_codes;
name = init_data->name;
ir->get_key = init_data->get_key;
+ pr_info("%s: [after override] ir_codes=%p, name=%s, get_key=%p\n",
+ __func__, ir_codes, name, ir->get_key);
}
/* Make sure we are all setup before going on */