A lot of the members of the default struct values used by the CSS API
were explicitly initialized to zero values. Designated initializers
have allowed these members to be removed.
Signed-off-by: Jeremy Sowden
---
.../hive_isp_css_common/input_formatter_global.h | 17
.../pci/atomisp2/css2400/ia_css_frame_public.h | 17
.../atomisp/pci/atomisp2/css2400/ia_css_pipe.h | 44 +---
.../pci/atomisp2/css2400/ia_css_pipe_public.h | 81 ---
.../atomisp/pci/atomisp2/css2400/ia_css_types.h| 48 +
.../isp/kernels/s3a/s3a_1.0/ia_css_s3a_types.h | 111 -
.../kernels/sdis/common/ia_css_sdis_common_types.h | 35 ---
.../runtime/binary/interface/ia_css_binary.h | 89 ++---
.../isp_param/interface/ia_css_isp_param_types.h | 9 --
.../runtime/pipeline/interface/ia_css_pipeline.h | 6 --
.../atomisp/pci/atomisp2/css2400/sh_css_legacy.h | 7 --
.../atomisp/pci/atomisp2/css2400/sh_css_metrics.h | 7 --
12 files changed, 20 insertions(+), 451 deletions(-)
diff --git
a/drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/input_formatter_global.h
b/drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/input_formatter_global.h
index 5e19b5bd56e6..7558f4964313 100644
---
a/drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/input_formatter_global.h
+++
b/drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/input_formatter_global.h
@@ -107,23 +107,6 @@ struct input_formatter_cfg_s {
uint32_tblock_no_reqs;
};
-#define DEFAULT_IF_CONFIG ( \
- (struct input_formatter_cfg_s) { \
- .start_line = 0, \
- .start_column = 0, \
- .left_padding = 0, \
- .cropped_height = 0, \
- .cropped_width = 0, \
- .deinterleaving = 0, \
- .buf_vecs = 0, \
- .buf_start_index= 0, \
- .buf_increment = 0, \
- .buf_eol_offset = 0, \
- .is_yuv420_format = false, \
- .block_no_reqs = false \
- } \
-)
-
extern const hrt_address HIVE_IF_SRST_ADDRESS[N_INPUT_FORMATTER_ID];
extern const hrt_data HIVE_IF_SRST_MASK[N_INPUT_FORMATTER_ID];
extern const uint8_t HIVE_IF_SWITCH_CODE[N_INPUT_FORMATTER_ID];
diff --git
a/drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_frame_public.h
b/drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_frame_public.h
index 56527feeb558..980b36171ca7 100644
--- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_frame_public.h
+++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_frame_public.h
@@ -122,18 +122,8 @@ struct ia_css_frame_info {
#define IA_CSS_BINARY_DEFAULT_FRAME_INFO ( \
(struct ia_css_frame_info) { \
- .res= (struct ia_css_resolution) { \
- .width = 0, \
- .height = 0 \
- }, \
- .padded_width = 0, \
.format = IA_CSS_FRAME_FORMAT_NUM, \
- .raw_bit_depth = 0, \
.raw_bayer_order= IA_CSS_BAYER_ORDER_NUM, \
- .crop_info = (struct ia_css_crop_info) { \
- .start_column = 0, \
- .start_line = 0 \
- }, \
} \
)
@@ -197,16 +187,9 @@ struct ia_css_frame {
#define DEFAULT_FRAME ( \
(struct ia_css_frame) { \
.info = IA_CSS_BINARY_DEFAULT_FRAME_INFO, \
- .data = 0, \
- .data_bytes = 0, \
.dynamic_queue_id = SH_CSS_INVALID_QUEUE_ID, \
.buf_type = IA_CSS_BUFFER_TYPE_INVALID, \
.flash_state= IA_CSS_FRAME_FLASH_STATE_NONE, \
- .exp_id = 0, \
- .isp_config_id = 0, \
- .valid = false, \
- .contiguous = false, \
- .planes = { 0 } \
} \
)
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_pipe.h
b/drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_pipe.h
index bfebfd8d6e63..a68eac6de36a 100644
--- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_pipe.h
+++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_pipe.h
@@ -39,16 +39,11 @@ struct ia_css_preview_settings {
struct ia_css_pipe *acc_pipe;
};
-#define IA_CSS_DEFAULT_PREVIEW_SETTINGS ( \
+#define