aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/acpi_configfs.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/acpi/acpi_configfs.c b/drivers/acpi/acpi_configfs.c
index b58850389094..78bb6ad1aa26 100644
--- a/drivers/acpi/acpi_configfs.c
+++ b/drivers/acpi/acpi_configfs.c
@@ -102,7 +102,7 @@ struct configfs_bin_attribute *acpi_table_bin_attrs[] = {
102 NULL, 102 NULL,
103}; 103};
104 104
105ssize_t acpi_table_signature_show(struct config_item *cfg, char *str) 105static ssize_t acpi_table_signature_show(struct config_item *cfg, char *str)
106{ 106{
107 struct acpi_table_header *h = get_header(cfg); 107 struct acpi_table_header *h = get_header(cfg);
108 108
@@ -112,7 +112,7 @@ ssize_t acpi_table_signature_show(struct config_item *cfg, char *str)
112 return sprintf(str, "%.*s\n", ACPI_NAME_SIZE, h->signature); 112 return sprintf(str, "%.*s\n", ACPI_NAME_SIZE, h->signature);
113} 113}
114 114
115ssize_t acpi_table_length_show(struct config_item *cfg, char *str) 115static ssize_t acpi_table_length_show(struct config_item *cfg, char *str)
116{ 116{
117 struct acpi_table_header *h = get_header(cfg); 117 struct acpi_table_header *h = get_header(cfg);
118 118
@@ -122,7 +122,7 @@ ssize_t acpi_table_length_show(struct config_item *cfg, char *str)
122 return sprintf(str, "%d\n", h->length); 122 return sprintf(str, "%d\n", h->length);
123} 123}
124 124
125ssize_t acpi_table_revision_show(struct config_item *cfg, char *str) 125static ssize_t acpi_table_revision_show(struct config_item *cfg, char *str)
126{ 126{
127 struct acpi_table_header *h = get_header(cfg); 127 struct acpi_table_header *h = get_header(cfg);
128 128
@@ -132,7 +132,7 @@ ssize_t acpi_table_revision_show(struct config_item *cfg, char *str)
132 return sprintf(str, "%d\n", h->revision); 132 return sprintf(str, "%d\n", h->revision);
133} 133}
134 134
135ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str) 135static ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str)
136{ 136{
137 struct acpi_table_header *h = get_header(cfg); 137 struct acpi_table_header *h = get_header(cfg);
138 138
@@ -142,7 +142,7 @@ ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str)
142 return sprintf(str, "%.*s\n", ACPI_OEM_ID_SIZE, h->oem_id); 142 return sprintf(str, "%.*s\n", ACPI_OEM_ID_SIZE, h->oem_id);
143} 143}
144 144
145ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str) 145static ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str)
146{ 146{
147 struct acpi_table_header *h = get_header(cfg); 147 struct acpi_table_header *h = get_header(cfg);
148 148
@@ -152,7 +152,7 @@ ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str)
152 return sprintf(str, "%.*s\n", ACPI_OEM_TABLE_ID_SIZE, h->oem_table_id); 152 return sprintf(str, "%.*s\n", ACPI_OEM_TABLE_ID_SIZE, h->oem_table_id);
153} 153}
154 154
155ssize_t acpi_table_oem_revision_show(struct config_item *cfg, char *str) 155static ssize_t acpi_table_oem_revision_show(struct config_item *cfg, char *str)
156{ 156{
157 struct acpi_table_header *h = get_header(cfg); 157 struct acpi_table_header *h = get_header(cfg);
158 158
@@ -162,7 +162,8 @@ ssize_t acpi_table_oem_revision_show(struct config_item *cfg, char *str)
162 return sprintf(str, "%d\n", h->oem_revision); 162 return sprintf(str, "%d\n", h->oem_revision);
163} 163}
164 164
165ssize_t acpi_table_asl_compiler_id_show(struct config_item *cfg, char *str) 165static ssize_t acpi_table_asl_compiler_id_show(struct config_item *cfg,
166 char *str)
166{ 167{
167 struct acpi_table_header *h = get_header(cfg); 168 struct acpi_table_header *h = get_header(cfg);
168 169
@@ -172,8 +173,8 @@ ssize_t acpi_table_asl_compiler_id_show(struct config_item *cfg, char *str)
172 return sprintf(str, "%.*s\n", ACPI_NAME_SIZE, h->asl_compiler_id); 173 return sprintf(str, "%.*s\n", ACPI_NAME_SIZE, h->asl_compiler_id);
173} 174}
174 175
175ssize_t acpi_table_asl_compiler_revision_show(struct config_item *cfg, 176static ssize_t acpi_table_asl_compiler_revision_show(struct config_item *cfg,
176 char *str) 177 char *str)
177{ 178{
178 struct acpi_table_header *h = get_header(cfg); 179 struct acpi_table_header *h = get_header(cfg);
179 180