diff options
Diffstat (limited to 'drivers/acpi/button.c')
-rw-r--r-- | drivers/acpi/button.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index 2e79a3395ecf..301e832e6961 100644 --- a/drivers/acpi/button.c +++ b/drivers/acpi/button.c | |||
@@ -434,18 +434,18 @@ static int acpi_button_add(struct acpi_device *device) | |||
434 | switch (button->type) { | 434 | switch (button->type) { |
435 | case ACPI_BUTTON_TYPE_POWER: | 435 | case ACPI_BUTTON_TYPE_POWER: |
436 | case ACPI_BUTTON_TYPE_POWERF: | 436 | case ACPI_BUTTON_TYPE_POWERF: |
437 | input->evbit[0] = BIT(EV_KEY); | 437 | input->evbit[0] = BIT_MASK(EV_KEY); |
438 | set_bit(KEY_POWER, input->keybit); | 438 | set_bit(KEY_POWER, input->keybit); |
439 | break; | 439 | break; |
440 | 440 | ||
441 | case ACPI_BUTTON_TYPE_SLEEP: | 441 | case ACPI_BUTTON_TYPE_SLEEP: |
442 | case ACPI_BUTTON_TYPE_SLEEPF: | 442 | case ACPI_BUTTON_TYPE_SLEEPF: |
443 | input->evbit[0] = BIT(EV_KEY); | 443 | input->evbit[0] = BIT_MASK(EV_KEY); |
444 | set_bit(KEY_SLEEP, input->keybit); | 444 | set_bit(KEY_SLEEP, input->keybit); |
445 | break; | 445 | break; |
446 | 446 | ||
447 | case ACPI_BUTTON_TYPE_LID: | 447 | case ACPI_BUTTON_TYPE_LID: |
448 | input->evbit[0] = BIT(EV_SW); | 448 | input->evbit[0] = BIT_MASK(EV_SW); |
449 | set_bit(SW_LID, input->swbit); | 449 | set_bit(SW_LID, input->swbit); |
450 | break; | 450 | break; |
451 | } | 451 | } |