projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3b8e88
)
platform/x86: intel_mid_powerbtn: Get rid of custom ICPU() macro
author
Andy Shevchenko
<
[email protected]
>
Fri, 31 Aug 2018 08:34:31 +0000
(11:34 +0300)
committer
Andy Shevchenko
<
[email protected]
>
Thu, 27 Sep 2018 08:45:29 +0000
(11:45 +0300)
Replace custom grown macro with generic INTEL_CPU_FAM6() one.
No functional change intended.
Signed-off-by: Andy Shevchenko <
[email protected]
>
drivers/platform/x86/intel_mid_powerbtn.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/intel_mid_powerbtn.c
b/drivers/platform/x86/intel_mid_powerbtn.c
index d79fbf924b136823987011664d385e1bdceb927d..c932990021698250d08d33a1ee547af62c587440 100644
(file)
--- a/
drivers/platform/x86/intel_mid_powerbtn.c
+++ b/
drivers/platform/x86/intel_mid_powerbtn.c
@@
-121,12
+121,9
@@
static const struct mid_pb_ddata mrfld_ddata = {
.setup = mrfld_setup,
};
-#define ICPU(model, ddata) \
- { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, (kernel_ulong_t)&ddata }
-
static const struct x86_cpu_id mid_pb_cpu_ids[] = {
- I
CPU(INTEL_FAM6_ATOM_PENWELL,
mfld_ddata),
- I
CPU(INTEL_FAM6_ATOM_MERRIFIELD,
mrfld_ddata),
+ I
NTEL_CPU_FAM6(ATOM_PENWELL,
mfld_ddata),
+ I
NTEL_CPU_FAM6(ATOM_MERRIFIELD,
mrfld_ddata),
{}
};