summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/internal.h
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2012-10-23 01:29:27 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-15 00:15:59 +0100
commitf351d027eea545a7996af54fce99f5668a67fec5 (patch)
treee79628268b0c5dcaca14f7b0cb0620b3288ac761 /drivers/acpi/internal.h
parent77b67063bb6bce6d475e910d3b886a606d0d91f7 (diff)
downloadtalos-obmc-linux-f351d027eea545a7996af54fce99f5668a67fec5.tar.gz
talos-obmc-linux-f351d027eea545a7996af54fce99f5668a67fec5.zip
ACPI / EC: Cleanup the member name for spinlock/mutex in struct
Current member names for mutex/spinlock are a little confusing. Change the { struct mutex lock; spinlock_t curr_lock; } to { struct mutex mutex; spinlock_t lock; } So that the code is cleaner and easier to read. Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r--drivers/acpi/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h
index ca75b9ce0489..509dcaa17555 100644
--- a/drivers/acpi/internal.h
+++ b/drivers/acpi/internal.h
@@ -58,11 +58,11 @@ struct acpi_ec {
unsigned long data_addr;
unsigned long global_lock;
unsigned long flags;
- struct mutex lock;
+ struct mutex mutex;
wait_queue_head_t wait;
struct list_head list;
struct transaction *curr;
- spinlock_t curr_lock;
+ spinlock_t lock;
};
extern struct acpi_ec *first_ec;
OpenPOWER on IntegriCloud