lkml.org 
[lkml]   [2020]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 1/9] x86/platform: Rename x86/apple.h -> x86/machine.h
    Date
    Rename linux/platform_data/x86/apple.h to linux/platform_data/x86/machine.h
    in order to add new quirks later on. For sake of being less intrusive,
    leave former file that includes a latter one.

    While here, add include to linux/types.h due to bool type in use.

    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    ---
    include/linux/platform_data/x86/apple.h | 14 +-------------
    include/linux/platform_data/x86/machine.h | 15 +++++++++++++++
    2 files changed, 16 insertions(+), 13 deletions(-)
    create mode 100644 include/linux/platform_data/x86/machine.h

    diff --git a/include/linux/platform_data/x86/apple.h b/include/linux/platform_data/x86/apple.h
    index 079e816c3c21..1fd0af6ffea9 100644
    --- a/include/linux/platform_data/x86/apple.h
    +++ b/include/linux/platform_data/x86/apple.h
    @@ -1,13 +1 @@
    -#ifndef PLATFORM_DATA_X86_APPLE_H
    -#define PLATFORM_DATA_X86_APPLE_H
    -
    -#ifdef CONFIG_X86
    -/**
    - * x86_apple_machine - whether the machine is an x86 Apple Macintosh
    - */
    -extern bool x86_apple_machine;
    -#else
    -#define x86_apple_machine false
    -#endif
    -
    -#endif
    +#include <linux/platform_data/x86/machine.h>
    diff --git a/include/linux/platform_data/x86/machine.h b/include/linux/platform_data/x86/machine.h
    new file mode 100644
    index 000000000000..b1e7a560a046
    --- /dev/null
    +++ b/include/linux/platform_data/x86/machine.h
    @@ -0,0 +1,15 @@
    +#ifndef PLATFORM_DATA_X86_MACHINE_H
    +#define PLATFORM_DATA_X86_MACHINE_H
    +
    +#include <linux/types.h>
    +
    +#ifdef CONFIG_X86
    +/**
    + * x86_apple_machine - whether the machine is an x86 Apple Macintosh
    + */
    +extern bool x86_apple_machine;
    +#else
    +#define x86_apple_machine false
    +#endif
    +
    +#endif /* PLATFORM_DATA_X86_MACHINE_H */
    --
    2.24.1
    \
     
     \ /
      Last update: 2020-01-20 17:09    [W:2.277 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site