Commit cffd6160 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp: get rid of two unused functions

Those cause build to break with -Werror with clang-12:

	drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c:121:24: error: unused function 'gdc_reg_load' [-Werror,-Wunused-function]
	drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c:33:1: error: unused function 'sh_css_elems_bytes_from_info' [-Werror,-Wunused-function]
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 002e8f0d
...@@ -28,10 +28,6 @@ static inline void gdc_reg_store( ...@@ -28,10 +28,6 @@ static inline void gdc_reg_store(
const unsigned int reg, const unsigned int reg,
const hrt_data value); const hrt_data value);
static inline hrt_data gdc_reg_load(
const gdc_ID_t ID,
const unsigned int reg);
#ifndef __INLINE_GDC__ #ifndef __INLINE_GDC__
#include "gdc_private.h" #include "gdc_private.h"
#endif /* __INLINE_GDC__ */ #endif /* __INLINE_GDC__ */
...@@ -117,10 +113,3 @@ static inline void gdc_reg_store( ...@@ -117,10 +113,3 @@ static inline void gdc_reg_store(
ia_css_device_store_uint32(GDC_BASE[ID] + reg * sizeof(hrt_data), value); ia_css_device_store_uint32(GDC_BASE[ID] + reg * sizeof(hrt_data), value);
return; return;
} }
static inline hrt_data gdc_reg_load(
const gdc_ID_t ID,
const unsigned int reg)
{
return ia_css_device_load_uint32(GDC_BASE[ID] + reg * sizeof(hrt_data));
}
...@@ -29,12 +29,6 @@ static const struct ia_css_raw_configuration default_config = { ...@@ -29,12 +29,6 @@ static const struct ia_css_raw_configuration default_config = {
.pipe = (struct sh_css_sp_pipeline *)NULL, .pipe = (struct sh_css_sp_pipeline *)NULL,
}; };
static inline unsigned
sh_css_elems_bytes_from_info(unsigned int raw_bit_depth)
{
return CEIL_DIV(raw_bit_depth, 8);
}
/* MW: These areMIPI / ISYS properties, not camera function properties */ /* MW: These areMIPI / ISYS properties, not camera function properties */
static enum sh_stream_format static enum sh_stream_format
css2isp_stream_format(enum atomisp_input_format from) { css2isp_stream_format(enum atomisp_input_format from) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment