summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorKate Hsuan <hpa@redhat.com>2023-05-08 07:26:30 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-06-09 14:22:58 +0100
commit72c1c48553093f63be9518b5d7541a66dafad83a (patch)
tree78a59fb4aac19b1b5075f0f7b284609743d07b9f /drivers/staging
parent5925dc0f30c2294f0015ee7060ef844b93000289 (diff)
downloadlinux-stable-72c1c48553093f63be9518b5d7541a66dafad83a.tar.gz
linux-stable-72c1c48553093f63be9518b5d7541a66dafad83a.tar.bz2
linux-stable-72c1c48553093f63be9518b5d7541a66dafad83a.zip
media: atomisp: sh_css_sp: Remove #ifdef ISP2401
The actions of ISP2401 and 2400 will be determined at the runtime. Link: https://lore.kernel.org/r/20230508062632.34537-3-hpa@redhat.com Signed-off-by: Kate Hsuan <hpa@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/atomisp/pci/sh_css_sp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/media/atomisp/pci/sh_css_sp.c b/drivers/staging/media/atomisp/pci/sh_css_sp.c
index 0dd58a7fe2cc..297e1b981720 100644
--- a/drivers/staging/media/atomisp/pci/sh_css_sp.c
+++ b/drivers/staging/media/atomisp/pci/sh_css_sp.c
@@ -952,12 +952,10 @@ sh_css_sp_init_stage(struct ia_css_binary *binary,
return 0;
}
-#if defined(ISP2401)
- (void)continuous;
- sh_css_sp_stage.deinterleaved = 0;
-#else
- sh_css_sp_stage.deinterleaved = ((stage == 0) && continuous);
-#endif
+ if (IS_ISP2401)
+ sh_css_sp_stage.deinterleaved = 0;
+ else
+ sh_css_sp_stage.deinterleaved = ((stage == 0) && continuous);
initialize_stage_frames(&sh_css_sp_stage.frames);
/*