diff options
author | Bob Moore <robert.moore@intel.com> | 2009-02-23 02:02:07 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-03-26 16:38:31 -0400 |
commit | 50ffba1bd3120b069617455545bc27bcf3cf7579 (patch) | |
tree | a4e1e1e22e526ff5067d9fb0fb90e18fccc948a3 /drivers/acpi/acpica/hwxface.c | |
parent | 9892dd23cbbfab1f7d4818622296e415979a9c77 (diff) |
ACPICA: Rename ACPI bit register access functions
Rename acpi_get_register and acpi_set_register to clarify the
purpose of these functions. New names are acpi_read_bit_register
and acpi_write_bit_register.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/hwxface.c')
-rw-r--r-- | drivers/acpi/acpica/hwxface.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/acpi/acpica/hwxface.c b/drivers/acpi/acpica/hwxface.c index c8100199634b..529251c7f911 100644 --- a/drivers/acpi/acpica/hwxface.c +++ b/drivers/acpi/acpica/hwxface.c | |||
@@ -242,7 +242,7 @@ ACPI_EXPORT_SYMBOL(acpi_write) | |||
242 | 242 | ||
243 | /******************************************************************************* | 243 | /******************************************************************************* |
244 | * | 244 | * |
245 | * FUNCTION: acpi_get_register | 245 | * FUNCTION: acpi_read_bit_register |
246 | * | 246 | * |
247 | * PARAMETERS: register_id - ID of ACPI Bit Register to access | 247 | * PARAMETERS: register_id - ID of ACPI Bit Register to access |
248 | * return_value - Value that was read from the register, | 248 | * return_value - Value that was read from the register, |
@@ -264,13 +264,13 @@ ACPI_EXPORT_SYMBOL(acpi_write) | |||
264 | * it make much sense to actually read this field.) | 264 | * it make much sense to actually read this field.) |
265 | * | 265 | * |
266 | ******************************************************************************/ | 266 | ******************************************************************************/ |
267 | acpi_status acpi_get_register(u32 register_id, u32 *return_value) | 267 | acpi_status acpi_read_bit_register(u32 register_id, u32 *return_value) |
268 | { | 268 | { |
269 | u32 register_value = 0; | 269 | u32 register_value = 0; |
270 | struct acpi_bit_register_info *bit_reg_info; | 270 | struct acpi_bit_register_info *bit_reg_info; |
271 | acpi_status status; | 271 | acpi_status status; |
272 | 272 | ||
273 | ACPI_FUNCTION_TRACE(acpi_get_register); | 273 | ACPI_FUNCTION_TRACE(acpi_read_bit_register); |
274 | 274 | ||
275 | /* Get the info structure corresponding to the requested ACPI Register */ | 275 | /* Get the info structure corresponding to the requested ACPI Register */ |
276 | 276 | ||
@@ -302,11 +302,11 @@ acpi_status acpi_get_register(u32 register_id, u32 *return_value) | |||
302 | return_ACPI_STATUS(status); | 302 | return_ACPI_STATUS(status); |
303 | } | 303 | } |
304 | 304 | ||
305 | ACPI_EXPORT_SYMBOL(acpi_get_register) | 305 | ACPI_EXPORT_SYMBOL(acpi_read_bit_register) |
306 | 306 | ||
307 | /******************************************************************************* | 307 | /******************************************************************************* |
308 | * | 308 | * |
309 | * FUNCTION: acpi_set_register | 309 | * FUNCTION: acpi_write_bit_register |
310 | * | 310 | * |
311 | * PARAMETERS: register_id - ID of ACPI Bit Register to access | 311 | * PARAMETERS: register_id - ID of ACPI Bit Register to access |
312 | * Value - Value to write to the register, in bit | 312 | * Value - Value to write to the register, in bit |
@@ -322,14 +322,14 @@ ACPI_EXPORT_SYMBOL(acpi_get_register) | |||
322 | * PM2 Control. | 322 | * PM2 Control. |
323 | * | 323 | * |
324 | ******************************************************************************/ | 324 | ******************************************************************************/ |
325 | acpi_status acpi_set_register(u32 register_id, u32 value) | 325 | acpi_status acpi_write_bit_register(u32 register_id, u32 value) |
326 | { | 326 | { |
327 | u32 register_value = 0; | 327 | u32 register_value = 0; |
328 | struct acpi_bit_register_info *bit_reg_info; | 328 | struct acpi_bit_register_info *bit_reg_info; |
329 | acpi_status status; | 329 | acpi_status status; |
330 | acpi_cpu_flags lock_flags; | 330 | acpi_cpu_flags lock_flags; |
331 | 331 | ||
332 | ACPI_FUNCTION_TRACE_U32(acpi_set_register, register_id); | 332 | ACPI_FUNCTION_TRACE_U32(acpi_write_bit_register, register_id); |
333 | 333 | ||
334 | /* Get the info structure corresponding to the requested ACPI Register */ | 334 | /* Get the info structure corresponding to the requested ACPI Register */ |
335 | 335 | ||
@@ -459,7 +459,7 @@ acpi_status acpi_set_register(u32 register_id, u32 value) | |||
459 | return_ACPI_STATUS(status); | 459 | return_ACPI_STATUS(status); |
460 | } | 460 | } |
461 | 461 | ||
462 | ACPI_EXPORT_SYMBOL(acpi_set_register) | 462 | ACPI_EXPORT_SYMBOL(acpi_write_bit_register) |
463 | 463 | ||
464 | /******************************************************************************* | 464 | /******************************************************************************* |
465 | * | 465 | * |