~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to util-linux/acpid.c

  • Committer: Denys Vlasenko
  • Author(s): Christian Franke
  • Date: 2023-11-13 10:32:35 UTC
  • Revision ID: git-v1:a63b60bdd6fa26b867c80d44074118babbae7ffd
Cygwin: regenerate defconfig

Signed-off-by: Christian Franke <christian.franke@t-online.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Licensed under GPLv2, see file LICENSE in this source tree.
8
8
 */
9
9
//config:config ACPID
10
 
//config:       bool "acpid (9 kb)"
 
10
//config:       bool "acpid (9.3 kb)"
11
11
//config:       default y
12
 
//config:       select PLATFORM_LINUX
13
12
//config:       help
14
13
//config:       acpid listens to ACPI events coming either in textual form from
15
14
//config:       /proc/acpi/event (though it is marked deprecated it is still widely
42
41
//usage:     "\n        -c DIR  Config directory [/etc/acpi]"
43
42
//usage:     "\n        -e FILE /proc event file [/proc/acpi/event]"
44
43
//usage:     "\n        -l FILE Log file [/var/log/acpid.log]"
45
 
//usage:     "\n        -p FILE Pid file [/var/run/acpid.pid]"
 
44
//usage:        IF_FEATURE_PIDFILE(
 
45
//usage:     "\n        -p FILE Pid file [" CONFIG_PID_FILE_PATH "/acpid.pid]"
 
46
//usage:        )
46
47
//usage:     "\n        -a FILE Action file [/etc/acpid.conf]"
47
48
//usage:     "\n        -M FILE Map file [/etc/acpi.map]"
48
49
//usage:        IF_FEATURE_ACPID_COMPAT(
98
99
        const char *desc;
99
100
};
100
101
 
101
 
static const struct acpi_event f_evt_tab[] = {
 
102
static const struct acpi_event f_evt_tab[] ALIGN_PTR = {
102
103
        { "EV_KEY", 0x01, "KEY_POWER", 116, 1, "button/power PWRF 00000080" },
103
104
        { "EV_KEY", 0x01, "KEY_POWER", 116, 1, "button/power PWRB 00000080" },
104
105
        { "EV_SW", 0x05, "SW_LID", 0x00, 1, "button/lid LID0 00000080" },
109
110
        const char *action;
110
111
};
111
112
 
112
 
static const struct acpi_action f_act_tab[] = {
 
113
static const struct acpi_action f_act_tab[] ALIGN_PTR = {
113
114
        { "PWRF", "PWRF/00000080" },
114
115
        { "LID0", "LID/00000080" },
115
116
};