summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/msi-laptop.c
diff options
context:
space:
mode:
authorRoald Frederickx <roald.frederickx@gmail.com>2010-07-20 15:19:39 -0700
committerMatthew Garrett <mjg@redhat.com>2010-08-03 09:48:57 -0400
commit9be0fcb5ed46509f859542fb2871ac2d277b5407 (patch)
tree8b6d8ffd7a6a6dd75b20d4858daed2b4edca4a45 /drivers/platform/x86/msi-laptop.c
parentc28341455c080356508cc375ba440018e150021c (diff)
downloadop-kernel-dev-9be0fcb5ed46509f859542fb2871ac2d277b5407.zip
op-kernel-dev-9be0fcb5ed46509f859542fb2871ac2d277b5407.tar.gz
compal-laptop: add JHL90, battery & hwmon interface
The driver now supports the Compal JHL90 (which I use) and it has some added features. The biggest novelties are a battery interface (power_supply) and a temperature and fan control interface (hmwon). It also adds a power-off feature to the backlight subsystem and it exports a few files that can enable/disable wake_on_XXX events. Much of the original code of the old features is still there, but I've changed some names to keep the naming more coherent with the added functionalities. (Sorry for the huge patch) Some technical stuff about the new driver: First of all, I'm not sure if the extra features also work on the other Compal boards. Currently they only get enabled if the DMI data indicates you are on a JHL90 board. Secondly, I've noticed a quirk in my fan controller. I have to re-send the wanted pwm-level to the controller every so often. If I don't do this, the fanspeed will slowly rise until after a couple of minutes it's at full speed. (Note that every normal userland application will probably update the pwm-level every so often anyway, based on temperature readings, so this might not be an issue in practice) If this turns out to be a problem with all the controllers, maybe we should implement a kernel timer and have the driver re-send the pwm level every XX seconds to make this transparent to userspace? (However, I couldn't immediately find a way to do this cleanly.) Additional information can be found in the source comments. [akpm@linux-foundation.org: coding-style fixes] [akpm@linux-foundation.org: add missing semicolon] Signed-off-by: Roald Frederickx <roald.frederickx@gmail.com> Cc: Matthew Garrett <mjg59@srcf.ucam.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/msi-laptop.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud