Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 517 → Rev 518

/shark/trunk/drivers/input/keyboard/atkbd.c
418,6 → 418,22
atkbd_command(atkbd, param, ATKBD_CMD_SETREP);
 
return 0;
case EV_PWR:
if (code) {
/* Enable the keyboard to receive keystrokes. */
if (atkbd_command(atkbd, NULL, ATKBD_CMD_ENABLE)) {
printk(KERN_ERR "atkbd.c: Failed to enable keyboard on %s\n", atkbd->serio->phys);
return -1;
}
} else {
/* Disable the keyboard to receive keystrokes. */
if (atkbd_command(atkbd, NULL, ATKBD_CMD_RESET_DIS)) {
printk(KERN_ERR "atkbd.c: Failed to disable keyboard on %s\n", atkbd->serio->phys);
return -1;
}
}
return 0;
}
 
return -1;
553,11 → 569,11
* Enable the keyboard to receive keystrokes.
*/
 
if (atkbd_command(atkbd, NULL, ATKBD_CMD_ENABLE)) {
/*if (atkbd_command(atkbd, NULL, ATKBD_CMD_ENABLE)) {
printk(KERN_ERR "atkbd.c: Failed to enable keyboard on %s\n",
atkbd->serio->phys);
return -1;
}
}*/
 
return 0;
}
618,7 → 634,7
}
if (atkbd->write) {
atkbd->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_LED) | BIT(EV_REP);
atkbd->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_LED) | BIT(EV_REP) | BIT(EV_PWR);
atkbd->dev.ledbit[0] = BIT(LED_NUML) | BIT(LED_CAPSL) | BIT(LED_SCROLLL);
} else atkbd->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_REP);