diff options
author | Éric Piel <eric.piel@tremplin-utc.net> | 2011-10-31 20:11:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:52 -0400 |
commit | 895c156c044a736d8dc2239020f4530bb6245675 (patch) | |
tree | 8da532a76d0081dde59e89142503e0ee5b82dec3 /drivers/misc/lis3lv02d/lis3lv02d.h | |
parent | e1e5687d75ef0ea5cbae63df48ff2fdcb5306f66 (diff) |
lis3: remove the references to the global variable in core driver
[ilkka.koskinen@nokia.com: fix arg to lis3->read()]
Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com>
Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Witold Pilat <witold.pilat@gmail.com>
Cc: Lyall Pearce <lyall.pearce@hp.com>
Cc: Malte Starostik <m-starostik@versanet.de>
Cc: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: Christian Lamparter <chunkeey@googlemail.com>
Subject: lis3-remove-the-references-to-the-global-variable-in-core-driver-fix
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/lis3lv02d/lis3lv02d.h')
-rw-r--r-- | drivers/misc/lis3lv02d/lis3lv02d.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/lis3lv02d/lis3lv02d.h b/drivers/misc/lis3lv02d/lis3lv02d.h index b94e72374810..2b1482ad3f16 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d.h +++ b/drivers/misc/lis3lv02d/lis3lv02d.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
22 | #include <linux/input-polldev.h> | 22 | #include <linux/input-polldev.h> |
23 | #include <linux/regulator/consumer.h> | 23 | #include <linux/regulator/consumer.h> |
24 | #include <linux/miscdevice.h> | ||
24 | 25 | ||
25 | /* | 26 | /* |
26 | * This driver tries to support the "digital" accelerometer chips from | 27 | * This driver tries to support the "digital" accelerometer chips from |
@@ -273,6 +274,8 @@ struct lis3lv02d { | |||
273 | struct fasync_struct *async_queue; /* queue for the misc device */ | 274 | struct fasync_struct *async_queue; /* queue for the misc device */ |
274 | wait_queue_head_t misc_wait; /* Wait queue for the misc device */ | 275 | wait_queue_head_t misc_wait; /* Wait queue for the misc device */ |
275 | unsigned long misc_opened; /* bit0: whether the device is open */ | 276 | unsigned long misc_opened; /* bit0: whether the device is open */ |
277 | struct miscdevice miscdev; | ||
278 | |||
276 | int data_ready_count[2]; | 279 | int data_ready_count[2]; |
277 | atomic_t wake_thread; | 280 | atomic_t wake_thread; |
278 | unsigned char irq_cfg; | 281 | unsigned char irq_cfg; |