aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/x86/xo1-rfkill.c
AgeCommit message (Collapse)AuthorFilesLines
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152Thomas Gleixner1-5/+1
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Allison Randal <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
2014-10-20platform: x86: drop owner assignment from platform_driversWolfram Sang1-1/+0
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang <[email protected]>
2013-01-03Drivers: platform: x86: remove __dev* attributes.Greg Kroah-Hartman1-3/+3
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <[email protected]> Cc: Joey Lee <[email protected]> Cc: Matthew Garrett <[email protected]> Cc: Peter Feuerer <[email protected]> Cc: Corentin Chary <[email protected]> Cc: Cezary Jackiewicz <[email protected]> Cc: Robert Gerlach <[email protected]> Cc: Ike Panhc <[email protected]> Cc: Henrique de Moraes Holschuh <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-07-31drivers: OLPC: update various drivers to include olpc-ec.hAndres Salomon1-2/+1
Switch over to using olpc-ec.h in multiple steps, so as not to break builds. This covers every driver that calls olpc_ec_cmd(). Signed-off-by: Andres Salomon <[email protected]> Acked-by: Paul Fox <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]>
2012-05-31xo1-rfkill: only act when blocked state is changedDaniel Drake1-1/+12
The XO-1 rfkill driver should only send EC commands when changing between blocked/unblocked state. The rfkill switch is asked to be unblocked on every resume (even when the card was never blocked before) and sending a EC_WLAN_LEAVE_RESET command here upsets the resume sequence of the libertas driver. Adding the check to avoid the spurious EC_WLAN_LEAVE_RESET fixes the wifi resume behaviour. The rfkill state is maintained by the hardware over suspend/resume so no extra consideration is needed here. Signed-off-by: Daniel Drake <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>
2012-03-20platform-drivers-x86: convert drivers/platform/x86/* to use ↵Axel Lin1-12/+1
module_platform_driver() This patch converts the drivers in drivers/platform/x86/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Hong Liu <[email protected]> Cc: Durgadoss R <[email protected]> Cc: Daniel Drake <[email protected]> Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>
2010-10-21Add OLPC XO-1 rfkill driverDaniel Drake1-0/+85
Add a software rfkill switch for the WLAN interface in the OLPC XO-1 laptop. It uses the OLPC embedded controller to cut/restore power to the Marvell WLAN chip on the motherboard. Signed-off-by: Daniel Drake <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>