aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-04-04 19:11:17 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-06-27 18:39:52 +0200
commit1183d1e7ec5d8f84446516fa03dabaabfb78130d (patch)
treed7047a7b533c036c716cee7928723a3d38297232
parent7c05d5e60c83dd473816be5ed5f5e965661103e2 (diff)
downloadhardware_replicant_libsamsung-ipc-1183d1e7ec5d8f84446516fa03dabaabfb78130d.tar.gz
hardware_replicant_libsamsung-ipc-1183d1e7ec5d8f84446516fa03dabaabfb78130d.tar.bz2
hardware_replicant_libsamsung-ipc-1183d1e7ec5d8f84446516fa03dabaabfb78130d.zip
includes: gen.h: switch to Linux code style
This contains no functional changes. The commented out code if any has also been preserved as it could be relevant to the understanding of the code. It will be kept until we understand why the code has been commented. In that case we either need to remove it completely or to replace it by a comment explaining why not having that code was necessary. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
-rw-r--r--include/gen.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/gen.h b/include/gen.h
index 8013df6..0dc9ff6 100644
--- a/include/gen.h
+++ b/include/gen.h
@@ -27,23 +27,23 @@
* Commands
*/
-#define IPC_GEN_PHONE_RES 0x8001
+#define IPC_GEN_PHONE_RES 0x8001
/*
* Values
*/
-#define IPC_GEN_PHONE_RES_CODE_SUCCESS 0x8000
+#define IPC_GEN_PHONE_RES_CODE_SUCCESS 0x8000
/*
* Structures
*/
struct ipc_gen_phone_res_data {
- unsigned char group;
- unsigned char index;
- unsigned char type;
- unsigned short code;
+ unsigned char group;
+ unsigned char index;
+ unsigned char type;
+ unsigned short code;
} __attribute__((__packed__));
/*
@@ -52,6 +52,4 @@ struct ipc_gen_phone_res_data {
int ipc_gen_phone_res_check(const struct ipc_gen_phone_res_data *data);
-#endif
-
-// vim:ts=4:sw=4:expandtab
+#endif /* __SAMSUNG_IPC_GEN_H__ */