diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-04-04 19:11:17 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-06-27 18:40:35 +0200 |
commit | 64b38ee5d3a6f12b55510ae7703749fd2ac6bad3 (patch) | |
tree | 5340b8d8ecda3ecbd207e8f6a44fc5f67a56d6d1 | |
parent | 971ddcbf609b34819238cb96f485aae57502b3d1 (diff) | |
download | hardware_replicant_libsamsung-ipc-64b38ee5d3a6f12b55510ae7703749fd2ac6bad3.tar.gz hardware_replicant_libsamsung-ipc-64b38ee5d3a6f12b55510ae7703749fd2ac6bad3.tar.bz2 hardware_replicant_libsamsung-ipc-64b38ee5d3a6f12b55510ae7703749fd2ac6bad3.zip |
includes: pwr.h: switch to Linux code style
This contains no functional changes.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
-rw-r--r-- | include/pwr.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/include/pwr.h b/include/pwr.h index 02db260..45da7d0 100644 --- a/include/pwr.h +++ b/include/pwr.h @@ -28,36 +28,34 @@ * Commands */ -#define IPC_PWR_PHONE_PWR_UP 0x0101 -#define IPC_PWR_PHONE_PWR_OFF 0x0102 -#define IPC_PWR_PHONE_RESET 0x0103 -#define IPC_PWR_BATT_STATUS 0x0104 -#define IPC_PWR_BATT_TYPE 0x0105 -#define IPC_PWR_BATT_COMP 0x0106 -#define IPC_PWR_PHONE_STATE 0x0107 +#define IPC_PWR_PHONE_PWR_UP 0x0101 +#define IPC_PWR_PHONE_PWR_OFF 0x0102 +#define IPC_PWR_PHONE_RESET 0x0103 +#define IPC_PWR_BATT_STATUS 0x0104 +#define IPC_PWR_BATT_TYPE 0x0105 +#define IPC_PWR_BATT_COMP 0x0106 +#define IPC_PWR_PHONE_STATE 0x0107 /* * Values */ -#define IPC_PWR_PHONE_STATE_REQUEST_LPM 0x0001 -#define IPC_PWR_PHONE_STATE_REQUEST_NORMAL 0x0202 +#define IPC_PWR_PHONE_STATE_REQUEST_LPM 0x0001 +#define IPC_PWR_PHONE_STATE_REQUEST_NORMAL 0x0202 -#define IPC_PWR_PHONE_STATE_RESPONSE_LPM 0x01 -#define IPC_PWR_PHONE_STATE_RESPONSE_NORMAL 0x02 +#define IPC_PWR_PHONE_STATE_RESPONSE_LPM 0x01 +#define IPC_PWR_PHONE_STATE_RESPONSE_NORMAL 0x02 /* * Structures */ struct ipc_pwr_phone_state_request_data { - unsigned short state; // IPC_PWR_PHONE_REQUEST_STATE + unsigned short state; /* IPC_PWR_PHONE_REQUEST_STATE */ } __attribute__((__packed__)); struct ipc_pwr_phone_state_response_data { - unsigned char state; // IPC_PWR_PHONE_RESPONSE_STATE + unsigned char state; /* IPC_PWR_PHONE_RESPONSE_STATE */ } __attribute__((__packed__)); -#endif - -// vim:ts=4:sw=4:expandtab +#endif /* __SAMSUNG_IPC_PWR_H__ */ |