aboutsummaryrefslogtreecommitdiff
path: root/miscutils/i2c_tools.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-11-30 13:03:03 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-11-30 13:03:03 +0100
commit965b795b87c59ed45cc7f16a62301dbae65b1627 (patch)
tree958e486f4f23177746ddee11913d3b59ff4e7f8e /miscutils/i2c_tools.c
parent2fba2f5bb99145eaa1635fe5a162426158d56a2c (diff)
downloadbusybox-w32-965b795b87c59ed45cc7f16a62301dbae65b1627.tar.gz
busybox-w32-965b795b87c59ed45cc7f16a62301dbae65b1627.tar.bz2
busybox-w32-965b795b87c59ed45cc7f16a62301dbae65b1627.zip
decrease paddign: gcc-9.3.1 slaps 32-byte alignment on arrays willy-nilly
text data bss dec hex filename 1021988 559 5052 1027599 fae0f busybox_old 1021236 559 5052 1026847 fab1f busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/i2c_tools.c')
-rw-r--r--miscutils/i2c_tools.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c
index cc8b99a92..09364e396 100644
--- a/miscutils/i2c_tools.c
+++ b/miscutils/i2c_tools.c
@@ -1053,18 +1053,13 @@ struct adap_desc {
1053}; 1053};
1054 1054
1055static const struct adap_desc adap_descs[] = { 1055static const struct adap_desc adap_descs[] = {
1056 { .funcs = "dummy", 1056 { .funcs = "dummy", .algo = "Dummy bus", },
1057 .algo = "Dummy bus", }, 1057 { .funcs = "isa", .algo = "ISA bus", },
1058 { .funcs = "isa", 1058 { .funcs = "i2c", .algo = "I2C adapter", },
1059 .algo = "ISA bus", }, 1059 { .funcs = "smbus", .algo = "SMBus adapter", },
1060 { .funcs = "i2c",
1061 .algo = "I2C adapter", },
1062 { .funcs = "smbus",
1063 .algo = "SMBus adapter", },
1064}; 1060};
1065 1061
1066struct i2c_func 1062struct i2c_func {
1067{
1068 long value; 1063 long value;
1069 const char* name; 1064 const char* name;
1070}; 1065};