summaryrefslogtreecommitdiffstats
path: root/drivers/staging/quickstart
Commit message (Collapse)AuthorAgeFilesLines
* Staging: quickstart: Fix compilation warning on 64 bit archSzymon Janc2012-02-131-2/+3
| | | | | | | | | | | | acpi_size is u32 or u64 depending on architecture. Cast it to unsigned long and use %lu for printing. This fix following build warning: drivers/staging/quickstart/quickstart.c: In function ‘quickstart_acpi_ghid’: drivers/staging/quickstart/quickstart.c:212:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘acpi_size’ [-Wformat] Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Bump driver version to 1.04Szymon Janc2012-02-131-1/+1
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Use scnprintf in quickstart_pressed_button_showSzymon Janc2012-02-131-1/+1
| | | | | | | | Use scnprintf instead of snprintf in quickstart_pressed_button_show as suggested in Documentation/filesystems/sysfs.txt. Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Use pr_err and pr_info for logsSzymon Janc2012-02-091-8/+8
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Rename quickstart_btn to quickstart_buttonSzymon Janc2012-02-081-23/+23
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Use %u for printing button idSzymon Janc2012-02-081-1/+1
| | | | | | | Button id is of unsigned int type. Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Use list.h API for buttons listSzymon Janc2012-02-081-59/+36
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Get rid of quickstart_data structSzymon Janc2012-02-081-14/+11
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Remove unused definesSzymon Janc2012-02-081-3/+0
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Use switch-case in quickstart_acpi_notifySzymon Janc2012-02-081-3/+7
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Cleanup quickstart_acpi_configSzymon Janc2012-02-081-9/+12
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Cleanup quickstart_acpi_addSzymon Janc2012-02-081-8/+14
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Cleanup quickstart_acpi_removeSzymon Janc2012-02-081-3/+5
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Cleanup quickstart_acpi_ghidSzymon Janc2012-02-081-12/+26
| | | | | | | | Also fix memory leak (buffer.pointer) when returned buffer of length less than 8. Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Make quickstart_input staticSzymon Janc2012-02-081-1/+1
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Move some code to avoid forward declarationsSzymon Janc2012-02-081-44/+31
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Prefix remaining functions names with quickstart_Szymon Janc2012-02-081-9/+9
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: Some style, whitespaces and typos fixesSzymon Janc2012-02-081-41/+39
| | | | | Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: quickstart: fixed coding style issuesTimo von Holtz2011-02-091-2/+3
| | | | | | | | | | Fixed the Following coding Style Issues: drivers/staging/quickstart/quickstart.c:8: ERROR: trailing whitespace drivers/staging/quickstart/quickstart.c:144: ERROR: spaces required around that '?' (ctx:VxV) drivers/staging/quickstart/quickstart.c:144: ERROR: spaces required around that ':' (ctx:VxV) Signed-off-by: Timo von Holtz <tvh@informatik.uni-kiel.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: quickstart: free after input_unregister_device()Dan Carpenter2010-11-161-2/+8
| | | | | | | | | input_unregister_device() releases "quickstart_input" so the input_free_device() is a double free. Also I noticed that there is a memory leak if the call to input_register_device() fails. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Merge 'staging-next' to Linus's treeGreg Kroah-Hartman2010-10-281-4/+3
|\ | | | | | | | | | | | | | | This merges the staging-next tree to Linus's tree and resolves some conflicts that were present due to changes in other trees that were affected by files here. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: quickstart: acpi_status is unsignedDan Carpenter2010-08-311-4/+3
| | | | | | | | | | | | | | | | | | acpi_bus_register_driver() returns an int, not acpi_status. It returns zero on success and negative error codes on failure, but acpi_status is unsigned. We can just use "ret" here. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | Update broken web addresses in the kernel.Justin P. Mattock2010-10-181-2/+1
|/ | | | | | | | | | | | | | | | | The patch below updates broken web addresses in the kernel Signed-off-by: Justin P. Mattock <justinmattock@gmail.com> Cc: Maciej W. Rozycki <macro@linux-mips.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Finn Thain <fthain@telegraphics.com.au> Cc: Randy Dunlap <rdunlap@xenotime.net> Cc: Matt Turner <mattst88@gmail.com> Cc: Dimitry Torokhov <dmitry.torokhov@gmail.com> Cc: Mike Frysinger <vapier.adi@gmail.com> Acked-by: Ben Pfaff <blp@cs.stanford.edu> Acked-by: Hans J. Koch <hjk@linutronix.de> Reviewed-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
* Staging: quickstart: depends on INPUTRandy Dunlap2010-08-021-1/+1
| | | | | | | | | | | | | | quickstart uses input_*() functions so it should depend on INPUT. ERROR: "input_register_device" [drivers/staging/quickstart/quickstart.ko] undefined! ERROR: "input_allocate_device" [drivers/staging/quickstart/quickstart.ko] undefined! ERROR: "input_event" [drivers/staging/quickstart/quickstart.ko] undefined! ERROR: "input_free_device" [drivers/staging/quickstart/quickstart.ko] undefined! ERROR: "input_unregister_device" [drivers/staging/quickstart/quickstart.ko] undefined! Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Angelo Arrifano <miknix@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: quickstart: add the quickstart driver to the buildGreg Kroah-Hartman2010-07-082-0/+11
| | | | | | | | This adds the needed Kconfig and Makefile changes to add the quickstart driver to the build. Cc: Angelo Arrifano <miknix@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: add quickstart acpi key driverAngelo Arrifano2010-07-081-0/+474
This adds the quickstart acpi key driver to the staging tree Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>