mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
drm/meson: Make some functions static
Fix sparse warnings: drivers/gpu/drm/meson/meson_viu.c:93:6: warning: symbol 'meson_viu_set_g12a_osd1_matrix' was not declared. Should it be static? drivers/gpu/drm/meson/meson_viu.c:121:6: warning: symbol 'meson_viu_set_osd_matrix' was not declared. Should it be static? drivers/gpu/drm/meson/meson_viu.c:190:6: warning: symbol 'meson_viu_set_osd_lut' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190413141455.34020-1-yuehaibing@huawei.com
This commit is contained in:
parent
1f2f059957
commit
2ccb8433eb
1 changed files with 8 additions and 8 deletions
|
@ -90,8 +90,8 @@ static int eotf_bypass_coeff[EOTF_COEFF_SIZE] = {
|
||||||
EOTF_COEFF_RIGHTSHIFT /* right shift */
|
EOTF_COEFF_RIGHTSHIFT /* right shift */
|
||||||
};
|
};
|
||||||
|
|
||||||
void meson_viu_set_g12a_osd1_matrix(struct meson_drm *priv, int *m,
|
static void meson_viu_set_g12a_osd1_matrix(struct meson_drm *priv,
|
||||||
bool csc_on)
|
int *m, bool csc_on)
|
||||||
{
|
{
|
||||||
/* VPP WRAP OSD1 matrix */
|
/* VPP WRAP OSD1 matrix */
|
||||||
writel(((m[0] & 0xfff) << 16) | (m[1] & 0xfff),
|
writel(((m[0] & 0xfff) << 16) | (m[1] & 0xfff),
|
||||||
|
@ -118,8 +118,8 @@ void meson_viu_set_g12a_osd1_matrix(struct meson_drm *priv, int *m,
|
||||||
priv->io_base + _REG(VPP_WRAP_OSD1_MATRIX_EN_CTRL));
|
priv->io_base + _REG(VPP_WRAP_OSD1_MATRIX_EN_CTRL));
|
||||||
}
|
}
|
||||||
|
|
||||||
void meson_viu_set_osd_matrix(struct meson_drm *priv,
|
static void meson_viu_set_osd_matrix(struct meson_drm *priv,
|
||||||
enum viu_matrix_sel_e m_select,
|
enum viu_matrix_sel_e m_select,
|
||||||
int *m, bool csc_on)
|
int *m, bool csc_on)
|
||||||
{
|
{
|
||||||
if (m_select == VIU_MATRIX_OSD) {
|
if (m_select == VIU_MATRIX_OSD) {
|
||||||
|
@ -187,10 +187,10 @@ void meson_viu_set_osd_matrix(struct meson_drm *priv,
|
||||||
#define OSD_EOTF_LUT_SIZE 33
|
#define OSD_EOTF_LUT_SIZE 33
|
||||||
#define OSD_OETF_LUT_SIZE 41
|
#define OSD_OETF_LUT_SIZE 41
|
||||||
|
|
||||||
void meson_viu_set_osd_lut(struct meson_drm *priv, enum viu_lut_sel_e lut_sel,
|
static void
|
||||||
unsigned int *r_map, unsigned int *g_map,
|
meson_viu_set_osd_lut(struct meson_drm *priv, enum viu_lut_sel_e lut_sel,
|
||||||
unsigned int *b_map,
|
unsigned int *r_map, unsigned int *g_map,
|
||||||
bool csc_on)
|
unsigned int *b_map, bool csc_on)
|
||||||
{
|
{
|
||||||
unsigned int addr_port;
|
unsigned int addr_port;
|
||||||
unsigned int data_port;
|
unsigned int data_port;
|
||||||
|
|
Loading…
Add table
Reference in a new issue