summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/ideapad_acpi.c
AgeCommit message (Collapse)AuthorFilesLines
2010-10-21ideapad: Change the driver name to ideapad-laptopIke Panhc1-382/+0
Since the platform drivers doing more for laptops than just using specific ACPI device. It will be good to change the name from *_acpi to *-laptop. Reference: http://lkml.org/lkml/2010/8/14/154 Signed-off-by: Ike Panhc <ike.pan@canonical.com> Acked-by: Len Brown <len.brown@intel.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
2010-10-21ideapad: rewrite the sw rfkill setIke Panhc1-25/+12
Control power of rf modules by ec commands Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
2010-10-21ideapad: rewrite the hw rfkill notifyIke Panhc1-36/+17
1. Read hw rfkill status by ec command 2. Not to touch sw status of each rfkill when hw rfkill notify 3. Initial rfkill status when module loaded Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
2010-10-21ideapad: use EC command to control cameraIke Panhc1-5/+11
Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
2010-10-21ideapad: use return value of _CFG to tell if device exist or notIke Panhc1-34/+10
There are several bits of the return value of _CFG shows if RF/Camera devices exist or not. Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
2010-10-21ideapad: make sure we bind on the correct deviceIke Panhc1-1/+4
By reading from method _CFG to make sure we bind on the correct VPC2004 device. Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
2010-10-21ideapad: check VPC bit before sync rfkill hw statusIke Panhc1-1/+15
Check VPC bit to make sure the HW rfkill is touched. Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
2010-10-21ideapad: add ACPI helpersIke Panhc1-0/+109
There are two methods under VPC2004 which is used to access VDAT/VCMD of EC register. Add helpers for read and write these two registers. And add read_method_int for reading the return value from ACPI methods which requires no parameter. Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
2010-08-11ideapad: Only allow camera state to be set to 0 or 1David Woodhouse1-1/+1
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2010-08-11ideapad: Stop using global variablesDavid Woodhouse1-34/+58
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2010-08-11Add Lenovo ideapad driverDavid Woodhouse1-0/+282
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>