mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 06:41:39 +00:00
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>
This commit is contained in:
parent
dc45eb20a8
commit
d5a91d74c6
3 changed files with 38 additions and 52 deletions
|
@ -359,8 +359,8 @@ extern bool wmi_has_guid(const char *guid);
|
|||
extern char acpi_video_backlight_string[];
|
||||
extern long acpi_is_video_device(acpi_handle handle);
|
||||
extern int acpi_blacklisted(void);
|
||||
extern void acpi_dmi_osi_linux(bool enable, const struct dmi_system_id *d);
|
||||
extern void acpi_dmi_osi_darwin(bool enable, const struct dmi_system_id *d);
|
||||
extern void acpi_osi_dmi_linux(bool enable, const struct dmi_system_id *d);
|
||||
extern void acpi_osi_dmi_darwin(bool enable, const struct dmi_system_id *d);
|
||||
extern void acpi_osi_setup(char *str);
|
||||
extern bool acpi_osi_is_win8(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue