mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
misc: rk628: Fix compile warning
Signed-off-by: Algea Cao <algea.cao@rock-chips.com> Change-Id: I29a6252b85c603dc6427595698fef071ef04e8df
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <linux/gpio/consumer.h>
|
||||
#include "rk628.h"
|
||||
#include "rk628_efuse.h"
|
||||
|
||||
#define EFUSE_SIZE 64
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user