[PATCH v1 1/1] media: atomisp: Inline one time use __IS_SOCS() macro

From: Andy Shevchenko

Date: Fri Nov 13 2026 - 09:30:14 EST


__IS_SOCS() macro is used only once and there is no sense
to keep it separate. Inline it into the IS_ISP2401, which
is the only user.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
.../staging/media/atomisp/include/linux/atomisp_platform.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/staging/media/atomisp/include/linux/atomisp_platform.h b/drivers/staging/media/atomisp/include/linux/atomisp_platform.h
index 0d6f2a4039f1..81b58a91bb9d 100644
--- a/drivers/staging/media/atomisp/include/linux/atomisp_platform.h
+++ b/drivers/staging/media/atomisp/include/linux/atomisp_platform.h
@@ -168,7 +168,6 @@ void atomisp_unregister_subdev(struct v4l2_subdev *subdev);

/* API from old platform_camera.h, new CPUID implementation */
#define __IS_SOC(x) (boot_cpu_data.x86_vfm == x)
-#define __IS_SOCS(x, y) (boot_cpu_data.x86_vfm == x || boot_cpu_data.x86_vfm == y)

#define IS_MFLD __IS_SOC(INTEL_ATOM_SALTWELL_MID)
#define IS_BYT __IS_SOC(INTEL_ATOM_SILVERMONT)
@@ -177,7 +176,6 @@ void atomisp_unregister_subdev(struct v4l2_subdev *subdev);
#define IS_MOFD __IS_SOC(INTEL_ATOM_SILVERMONT_MID2)

/* Both CHT and MOFD come with ISP2401 */
-#define IS_ISP2401 __IS_SOCS(INTEL_ATOM_AIRMONT, \
- INTEL_ATOM_SILVERMONT_MID2)
+#define IS_ISP2401 (IS_CHT || IS_MOFD)

#endif /* ATOMISP_PLATFORM_H_ */
--
2.50.1