summaryrefslogtreecommitdiffstats
path: root/drivers/staging/samsung-laptop
Commit message (Collapse)AuthorAgeFilesLines
* backlight: add backlight typeMatthew Garrett2011-03-231-0/+1
| | | | | | | | | | | | | | | | | | | There may be multiple ways of controlling the backlight on a given machine. Allow drivers to expose the type of interface they are providing, making it possible for userspace to make appropriate policy decisions. Signed-off-by: Matthew Garrett <mjg@redhat.com> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: David Airlie <airlied@linux.ie> Cc: Alex Deucher <alexdeucher@gmail.com> Cc: Ben Skeggs <bskeggs@redhat.com> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Len Brown <lenb@kernel.org> Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Staging: samsung-laptop: add support for N230 modelGreg Kroah-Hartman2011-03-111-3/+3
| | | | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: samsung-laptop: Samsung R410P backlight driverAlberto Mardegan2011-03-071-0/+10
| | | | | | | | Here's a trivial patch which adds support to the backlight device found in Samsung R410 Plus laptops. Signed-off-by: Alberto Mardegan <mardy@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: fix brightness level and add new device idsNils Faerber2011-02-271-7/+25
| | | | | | | | | | | | | | | | | | The patch is against the 2.6.37 drivers/staging/samsung-laptop driver and implements some extra enhancements. It fixes an issue that the brightness would not change the level at once as well as and some other oddities. It was resolved by reallocated the SABI memory reagion using the "nocache" option. The patch also introduces a new set of supported netbook models, especially the NC10plus which was used for testing this patch. This new set of models also offer 9 instead of just 8 brightness levels so it also introduces an additional parameter for the models struct so that models can define their own brightness range. Signed-off-by: Nils Faerber <nils.faerber@kernelconcepts.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: Add P460 to supported laptopsRiccardo Magliocchetti2011-02-271-0/+9
| | | | | Signed-off-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: Constify samsung-laptop.cJoe Perches2011-02-271-6/+6
| | | | | | | | | | | | | Change sabi_config to const. Reduces data, increases text ~200 bytes. $ size drivers/platform/x86/samsung-laptop.o* text data bss dec hex filename 6933 5084 1560 13577 3509 drivers/platform/x86/samsung-laptop.o.new 6765 5252 1560 13577 3509 drivers/platform/x86/samsung-laptop.o.old Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: samsung-laptop: address review commentsGreg Kroah-Hartman2011-02-251-35/+33Star
| | | | | | | Fixed up the printk stuff to use pr_XXX where applicable, and reversed the logic when testing for commands to complete properly. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: fix header address for N128Greg Kroah-Hartman2011-02-251-1/+1
| | | | | | | | | | When doing the conversion to the "support more than one model" the header address of the N128 was incorrectly copied. This fixes the driver to work properly now on this laptop model. Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: samsung-laptop: Add support for Samsung NP-X120/X170 laptopRoman Grebennikov2011-02-251-0/+10
| | | | | | | Add Samsung NP-X120/X170 laptop DMI signature to samsung-laptop DMI table. Signed-off-by: Roman Grebennikov <grebennikov.roman@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: samsung-laptop: add support for R519 laptopsGreg Kroah-Hartman2011-02-251-0/+10
| | | | | Reported-by: Piotr Mitas <yabolus@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: samsung-laptop: add support for r70 laptopsGreg Kroah-Hartman2011-02-251-0/+10
| | | | | Reported-by: Evgeny Bobkin <stwooe@mail.tu-berlin.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: samsung-laptop: add support for N145P/N250P/N260P machinesRichard Schütz2011-02-251-0/+9
| | | | | | | Add DMI data for Samsung N145P/N250P/N260P Signed-off-by: Richard Schütz <r.schtz@t-online.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: add a bunch more laptop DMI signaturesGreg Kroah-Hartman2011-02-091-1/+49
| | | | | | | | | | Taken from the fork of the driver at: http://code.google.com/p/easy-slow-down-manager/ which should no longer be needed now that the in-kernel driver now supports these laptops. Cc: Kobelkov Sergey <sergeyko81@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: add support for NP-Q45Greg Kroah-Hartman2011-02-091-0/+10
| | | | | | Support for the Samsung NP-Q45 from Jérémie Huchet added Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: Added support for Samsung NC10 laptopGreg Kroah-Hartman2011-02-091-0/+10
| | | | | | | Info was provided by Soeren Sonnenburg <bugreports@nn7.de> Cc: Soeren Sonnenburg <bugreports@nn7.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: fix up some variable nameingGreg Kroah-Hartman2011-02-091-17/+17
| | | | | | | No camelcase in the Linux kernel please. Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: fix up a few more minor coding style issuesGreg Kroah-Hartman2011-02-091-8/+17
| | | | | Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: change sabi_configs to be in C99 formatGreg Kroah-Hartman2011-02-091-54/+54
| | | | | | | This makes the coding style checker a lot happier. Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: fix up brace coding style issuesGreg Kroah-Hartman2011-02-091-10/+5Star
| | | | | | | | | These were introduced with the patch, "staging: samsung-laptop: Extend samsung-laptop platform driver to support another flavor of its platform BIOS." Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: fix up space/tab coding style issuesGreg Kroah-Hartman2011-02-091-17/+17
| | | | | | | | | These were introduced with the patch, "staging: samsung-laptop: Extend samsung-laptop platform driver to support another flavor of its platform BIOS." Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: samsung-laptop: Added Samsung X125 DMI info.Ingmar Steen2011-02-091-0/+10
| | | | | Signed-off-by: Ingmar Steen <iksteen@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: samsung-laptop: Extend samsung-laptop platform driver to support ↵Ingmar Steen2011-02-091-127/+265
| | | | | | | | | | | | | | | | | another flavor of its platform BIOS. There are currently two implementations of the Samsung BIOS that controls the rfkill switch, backlight brightness / power and performance level. The samsung-laptop driver implements the BIOS flavor with the SECLINUX signature, this patch implements talking to the other BIOS with 'SwSmi@' signature. Both expose very similar functionality and way of accessing the commands. The differences are mostly offsets, command identifiers and some values. This patch introduces a sabi_config structure that contains information on identifying and accessing specific SABI flavors. Signed-off-by: Ingmar Steen <iksteen@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Merge branch 'master' into for-nextJiri Kosina2010-12-221-1/+1
|\ | | | | | | | | | | | | | | | | | | Conflicts: MAINTAINERS arch/arm/mach-omap2/pm24xx.c drivers/scsi/bfa/bfa_fcpim.c Needed to update to apply fixes for which the old branch was too outdated.
| * Staging: samsung-laptop: fix up my fixup for some sysfs attribute permissionsGreg Kroah-Hartman2010-11-181-1/+1
| | | | | | | | | | | | | | | | | | They should be writable by root, not readable. Doh, stupid me with the wrong flags. Reported-by: Jonathan Cameron <jic23@cam.ac.uk> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: samsung-laptop: fix up some sysfs attribute permissionsGreg Kroah-Hartman2010-11-161-1/+1
| | | | | | | | | | | | | | | | They should not be writable by any user Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | backlight: constify backlight_opsLionel Debroux2010-11-161-1/+1
|/ | | | | | | | | | | | backlight_device_register has been expecting a const "ops" argument, and using it as such, since 9905a43b2d563e6f89e4c63c4278ada03f2ebb14. Let's make the remaining backlight_ops instances const. Inspired by hunks of the grsecurity patch, updated for newer kernels. Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
* backlight: Allow properties to be passed at registrationMatthew Garrett2010-03-161-2/+5
| | | | | | | | | | Values such as max_brightness should be set before backlights are registered, but the current API doesn't allow that. Add a parameter to backlight_device_register and update drivers to ensure that they set this correctly. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Staging: samsung-laptop: fix coding style issuesChihau Chau2010-03-041-3/+6
| | | | | | | | This fixes some lines over 80 characters coding style issues. Signed-off-by: Chihau Chau <chihau@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: add TODO fileGreg Kroah-Hartman2009-12-111-0/+5
| | | | | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: samsung-laptop: remove old kernel codeGreg Kroah-Hartman2009-12-111-40/+0Star
| | | | | | | | Don't test for the kernel version, we know what version we are in, the latest. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: add Samsung Laptop driverGreg Kroah-Hartman2009-12-113-0/+593
This is a drive for the Samsung N128 laptop to control the wireless LED and backlight. Many thanks to Joey Lee for his help in testing and finding all of my bugs in the development of this driver, it has been invaluable. Cc: Joey Lee <jlee@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>