summaryrefslogtreecommitdiffstats
path: root/drivers/misc/sony-laptop.c
Commit message (Collapse)AuthorAgeFilesLines
* sony-laptop: remove user visible camera controls as platform attributesmalattia@linux.it2007-04-281-36/+0
| | | | | | | | Avoid giving the user the possibility to shoot his own foot and let the meye driver enable/disable the camera wisely (PCI_ID based). Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: add a meye-usable include file for camera opsmalattia@linux.it2007-04-281-8/+9
| | | | | | | Copy and rename (for easier co-existence) the MEYE-wise exported interface. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: complete the motion eye camera support in sony-laptopmalattia@linux.it2007-04-281-18/+90
| | | | | | | | Add the exported sony_pic_camera_command() function to make the MEYE driver happy. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sonypi: try to detect if sony-laptop has already taken one of the known ioportsmalattia@linux.it2007-04-281-2/+2
| | | | | | | | | | Get the IO resources list in sony-laptop in the same order as listed in sonypi and make sonypi check if one of those is already busy. The sonypi check can be disabled by a module parameter in case the user thinks we are plainly wrong (check_ioport=0). Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: add edge modem support (also called WWAN)malattia@linux.it2007-04-281-0/+41
| | | | | | | | Some SZ Vaios have a gsm built-in modem. Allow powering on/off this device. Thanks to Joshua Wise for the base code. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: add locking on accesses to the ioport and global varsmalattia@linux.it2007-04-281-12/+31
| | | | | | | Better avoid having ioport commands mixing and global variables reading/writing. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: add camera enable/disable parameter, better handle possible ↵malattia@linux.it2007-04-281-15/+36
| | | | | | | | | | | infinite loop Use a parameter to enable/disable motion eye camera (for C1VE/C1VN models) controls and avoid entering an infinite loop if the camera is not present and the HW doesn't answer as we expect on io commands. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: sonypi backward compatibility codemalattia@linux.it2007-04-101-3/+329
| | | | | | | Compatibility code to allow old sonypi bound userspace apps to still work. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: sanitize printksmalattia@linux.it2007-04-101-21/+19
| | | | | | | Unify printks to resemble a unique driver. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: additional platform attributes coming from SNY6001malattia@linux.it2007-04-101-1/+204
| | | | | | | Register additional platform attributes coming from the SPIC (sonypi) driver. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: Unify the input subsystem event forwardingmalattia@linux.it2007-04-101-265/+276
| | | | | | | | SNC and SPIC events are forwarded to the same input devices and are thus handled together. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: Add SNY6001 device handling (sonypi reimplementation)malattia@linux.it2007-04-101-13/+1072
| | | | | | | Reimplement sonypi using ACPI only functions. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: Add debug macros also used by the sonypi reimplementationmalattia@linux.it2007-04-101-10/+10
| | | | | Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: Prepare the platform driver for multiple users.malattia@linux.it2007-04-101-100/+112
| | | | | | | | | Both the SNC and SPIC device drivers will create attributes and thus there's the need to have an internal usage count to avoid re-registering or de-registering at the wrong time. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: Remove ACPI references from variable and function names.malattia@linux.it2007-04-101-93/+93
| | | | | Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: fix uninitialised variableAndrew Morton2007-03-071-1/+1
| | | | | | | | | | | drivers/misc/sony-laptop.c: In function 'sony_acpi_add': drivers/misc/sony-laptop.c:456: warning: 'result' may be used uninitialized in this function The compiler seems to actually be telling the truth this time. Cc: Mattia Dongili <malattia@linux.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
* backlight: Clean up pmac_backlight handlingRichard Purdie2007-02-201-6/+9
| | | | | | | Move the setting/unsetting of pmac_backlight into the backlight core instead of doing it in each driver. Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
* backlight: Remove unneeded owner fieldRichard Purdie2007-02-201-1/+0
| | | | | | | | | | | | Remove uneeded owner field from backlight_properties structure. Nothing uses it and it is unlikely that it will ever be used. The backlight class uses other means to ensure that nothing references unloaded code. Based on a patch from Dmitry Torokhov <dtor@insightbb.com> Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
* sony-laptop: allow complex per-value input/output validationMattia Dongili2007-02-131-19/+62
| | | | | | | | | | | Replace sony_acpi_value.{min,max} with a callback function that allows more complex reasoning in accepting input and presenting output. This allows consistency between the sony-laptop specific 'brightness_default' and the backlight subsystem 0-based 'brightness'. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: LindentLen Brown2007-02-131-73/+78
| | | | Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: Group functions and structures to better draw subsytems usageMattia Dongili2007-02-131-41/+51
| | | | | Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: Remove /proc/acpi/sony interface and implement platform_device.Mattia Dongili2007-02-131-198/+198
| | | | | | | | | Rework method names list to allow an easier management of multiple values. Add myself as author/maintainer and bump the version number. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
* sony-laptop: create from sony_acpiMattia Dongili2007-02-131-0/+504
Move drivers/acpi/sony_acpi.c to drivers/misc/sony-laptop.c with all the necessary configuration. The SONY_LAPTOP config option substitutes the old ACPI_SONY and is 'default n' now. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
OpenPOWER on IntegriCloud