]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / osi: Cleanup coding style issues before creating a separate OSI source file
authorLv Zheng <lv.zheng@intel.com>
Tue, 3 May 2016 08:48:53 +0000 (16:48 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 May 2016 22:13:52 +0000 (00:13 +0200)
commitcca1f420406c538cfebfdb190c140ab105788318
tree29218579b3e13b80c1505162c133a70f26228042
parentcf95ed82cd99651ffec5d080baec61c0ee4503e0
ACPI / osi: Cleanup coding style issues before creating a separate OSI source file

This patch performs necessary cleanups before moving OSI support to
another file.

 1. Change printk into pr_xxx
 2. Do not initialize values to 0
 3. Do not append additional "return" at the end of the function
 4. Remove useless comments which may easily break line breaking rule

After fixing the coding style issues, rename functions to make them looking
like acpi_osi_xxx.

No functional changes.

Tested-by: Lukas Wunner <lukas@wunner.de>
Tested-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/blacklist.c
drivers/acpi/osl.c
include/linux/acpi.h