diff --git a/drivers/misc/rk628/rk628_efuse.c b/drivers/misc/rk628/rk628_efuse.c index ee41b0d0fb72..1fb0e33a321c 100644 --- a/drivers/misc/rk628/rk628_efuse.c +++ b/drivers/misc/rk628/rk628_efuse.c @@ -9,6 +9,7 @@ #include #include "rk628.h" +#include "rk628_efuse.h" #define EFUSE_SIZE 64 diff --git a/drivers/misc/rk628/rk628_hdmirx.c b/drivers/misc/rk628/rk628_hdmirx.c index 5667f10b8356..473ee9bed174 100644 --- a/drivers/misc/rk628/rk628_hdmirx.c +++ b/drivers/misc/rk628/rk628_hdmirx.c @@ -93,7 +93,7 @@ struct rk628_hdmirx { struct rk628_audiostate audio_state; }; -void rk628_hdmirx_reset_control_assert(struct rk628 *rk628) +static void rk628_hdmirx_reset_control_assert(struct rk628 *rk628) { /* presetn_hdmirx */ rk628_i2c_write(rk628, CRU_SOFTRST_CON02, 0x40004); @@ -101,7 +101,7 @@ void rk628_hdmirx_reset_control_assert(struct rk628 *rk628) rk628_i2c_write(rk628, CRU_SOFTRST_CON02, 0x10001000); } -void rk628_hdmirx_reset_control_deassert(struct rk628 *rk628) +static void rk628_hdmirx_reset_control_deassert(struct rk628 *rk628) { /* presetn_hdmirx */ rk628_i2c_write(rk628, CRU_SOFTRST_CON02, 0x40000); @@ -127,7 +127,7 @@ static u32 hdmirx_phy_read(struct rk628 *rk628, u32 offset) return val; } -void rk628_hdmirx_phy_enable(struct rk628 *rk628, bool is_hdmi2) +static void rk628_hdmirx_phy_enable(struct rk628 *rk628, bool is_hdmi2) { hdmirx_phy_write(rk628, 0x02, 0x1860); hdmirx_phy_write(rk628, 0x03, 0x0060); @@ -203,7 +203,7 @@ static const struct file_operations rk628_hdmirx_phy_fops = { .release = single_release, }; -void rk628_hdmirx_phy_set_clrdpt(struct rk628 *rk628, bool is_8bit) +static void rk628_hdmirx_phy_set_clrdpt(struct rk628 *rk628, bool is_8bit) { if (is_8bit) hdmirx_phy_write(rk628, 0x03, 0x0000); diff --git a/drivers/misc/rk628/rk628_pinctrl.c b/drivers/misc/rk628/rk628_pinctrl.c index f2da87a56f1a..19e5316cfb4f 100644 --- a/drivers/misc/rk628/rk628_pinctrl.c +++ b/drivers/misc/rk628/rk628_pinctrl.c @@ -6,6 +6,7 @@ */ #include "rk628.h" +#include "rk628_gpio.h" static int rk628_calc_mux_offset(struct rk628 *rk628, int mux, int reg, int offset) { diff --git a/drivers/misc/rk628/rk628_post_process.c b/drivers/misc/rk628/rk628_post_process.c index f6479ace3b92..d2de17aed21e 100644 --- a/drivers/misc/rk628/rk628_post_process.c +++ b/drivers/misc/rk628/rk628_post_process.c @@ -9,6 +9,7 @@ #include "rk628.h" #include "rk628_config.h" #include "rk628_cru.h" +#include "rk628_post_process.h" #define PQ_CSC_HUE_TABLE_NUM 256 #define PQ_CSC_MODE_COEF_COMMENT_LEN 32 @@ -1037,30 +1038,6 @@ static const struct csc_mapping csc_mapping_table[] = { }, }; -static const struct rk_pq_csc_coef r2y_for_y2y = { - 306, 601, 117, - -151, -296, 446, - 630, -527, -102, -}; - -static const struct rk_pq_csc_coef y2r_for_y2y = { - 1024, -0, 1167, - 1024, -404, -594, - 1024, 2081, -1, -}; - -static const struct rk_pq_csc_coef rgb_input_swap_matrix = { - 0, 0, 1, - 1, 0, 0, - 0, 1, 0, -}; - -static const struct rk_pq_csc_coef yuv_output_swap_matrix = { - 0, 0, 1, - 1, 0, 0, - 0, 1, 0, -}; - static bool is_rgb_format(u64 format) { switch (format) {