ideapad_laptop: remove ideapad_handle and ideapad_priv
authorZhang Rui <rui.zhang@intel.com>
Wed, 25 Sep 2013 12:39:49 +0000 (20:39 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Sep 2013 17:40:13 +0000 (19:40 +0200)
commit331e0ea243ed15bbf0958f46861505f2065e99f8
treeb93e8f1128d8b9a0b34206e44ed4092cd2458927
parent75a11f11a49da9862ff2fbae75428076571cebe4
ideapad_laptop: remove ideapad_handle and ideapad_priv

The current code use ideapad_handle and ideapad_priv to store
some information for the ideapad device.
But as they are global/static variables, the driver will be broken
if there are more than one ideapad ACPI device node on a platform.
Although this does not happen for now and may not happen in the future,
but still, this is a software bug.

Remove these two variables in this patch.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
CC: Matthew Garrett <matthew.garrett@nebula.com>
CC: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/platform/x86/ideapad-laptop.c