Skip to content

Commit 77bdaca

Browse files
committed
media: atomisp: use macros from intel-family.h
Instead of hardcoding the intel family values there, use the already defined ones from asm/intel-family.h. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 17c3827 commit 77bdaca

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/staging/media/atomisp/include/linux/atomisp_platform.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#ifndef ATOMISP_PLATFORM_H_
1919
#define ATOMISP_PLATFORM_H_
2020

21+
#include <asm/intel-family.h>
22+
2123
#include <linux/i2c.h>
2224
#include <linux/sfi.h>
2325
#include <media/v4l2-subdev.h>
@@ -240,9 +242,9 @@ const struct atomisp_camera_caps *atomisp_get_default_camera_caps(void);
240242
boot_cpu_data.x86 == 6 && \
241243
boot_cpu_data.x86_model == x)
242244

243-
#define IS_MFLD __IS_SOC(0x27)
244-
#define IS_BYT __IS_SOC(0x37)
245-
#define IS_CHT __IS_SOC(0x4C)
246-
#define IS_MOFD __IS_SOC(0x5A)
245+
#define IS_MFLD __IS_SOC(INTEL_FAM6_ATOM_SALTWELL_MID)
246+
#define IS_BYT __IS_SOC(INTEL_FAM6_ATOM_SILVERMONT)
247+
#define IS_CHT __IS_SOC(INTEL_FAM6_ATOM_AIRMONT)
248+
#define IS_MOFD __IS_SOC(INTEL_FAM6_ATOM_AIRMONT_MID)
247249

248250
#endif /* ATOMISP_PLATFORM_H_ */

0 commit comments

Comments
 (0)