[PATCH 00/11] driver: thikpad_acpi: deal with checkpatch issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This serie of patches deals with the checkpatch errors and warnings
found in the ./drivers/platform/x86/thinkpad_acpi.c file. In total
approx. 76 items have been fixed and in particular these are:
	- spaces required around that '?' (ctx:VxW)
	- "foo* const bar" should be "foo * const bar"
	- Prefer seq_puts to seq_printf
	- Missing a blank line after declarations
	- braces {} are not necessary for any arm of this statement
	- inline keyword should sit between storage class and type
	- static const char * array should probably be
	  static const char * const
	- simple_strtoul is obsolete, use kstrtoul instead
	- __packed is preferred over __attribute__((packed))
	- Missing a blank line after declarations
	- Unnecessary space before function pointer arguments
	- Use #include <linux/uaccess.h> instead of <asm/uaccess.h>
	- Prefer [subsystem eg: netdev]_dbg([subsystem]dev, ... then
	  dev_dbg(dev, ... then pr_debug(...  to printk(KERN_DEBUG ...

The most significiant change is the "simple_strtoul is obsolete, use
kstrtoul instead" therefore this patch should be reviewed carefully.

The linux-next tree (36efbdf) has been used as a base for this work.

Konrad Zapalowicz (11):
  driver: thinkpad_acpi: add spaces around ?
  driver: thinkpad_acpi: add parenthesis around complex macro
  driver: thinkpad_acpi: fix minor checkpatch errors
  driver: thinkpad_acpi: replace seq_printf with seq_puts
  driver: thinkpad_acpi: add blank line after declaration
  driver: thinkpad_acpi: remove unnecessary spaces
  driver: thinkpad_acpi: remove not necessary {} braces
  driver: thinkpad_acpi: replace printk with pr_debug
  driver: thinkpad_acpi: replace simple_strtoul with kstrtoul
  driver: thinkpad_acpi: fix minor checkpatch warnings
  driver: thinkpad_acpi: remove spaces at the beginning

 drivers/platform/x86/thinkpad_acpi.c | 230 ++++++++++++++++++-----------------
 1 file changed, 119 insertions(+), 111 deletions(-)

-- 
1.8.1.2


------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel




[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux