mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 16:35:37 +00:00
drivers: video: Remove duplicate newlines
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
parent
85168f15d1
commit
109ab9d296
16 changed files with 0 additions and 30 deletions
|
@ -319,7 +319,6 @@ err:
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static unsigned long gtt_read(struct broadwell_igd_priv *priv,
|
static unsigned long gtt_read(struct broadwell_igd_priv *priv,
|
||||||
unsigned long reg)
|
unsigned long reg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -100,7 +100,6 @@ static int console_putc_xy_1(struct udevice *dev, uint x_frac, uint y, int cp)
|
||||||
return VID_TO_POS(fontdata->width);
|
return VID_TO_POS(fontdata->width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int console_set_row_2(struct udevice *dev, uint row, int clr)
|
static int console_set_row_2(struct udevice *dev, uint row, int clr)
|
||||||
{
|
{
|
||||||
struct video_priv *vid_priv = dev_get_uclass_priv(dev->parent);
|
struct video_priv *vid_priv = dev_get_uclass_priv(dev->parent);
|
||||||
|
|
|
@ -762,7 +762,6 @@ static void hdmi_audio_set_format(struct dw_hdmi *hdmi)
|
||||||
hdmi_write(hdmi, HDMI_AUD_CONF0_I2S_SELECT | HDMI_AUD_CONF0_I2S_IN_EN_0,
|
hdmi_write(hdmi, HDMI_AUD_CONF0_I2S_SELECT | HDMI_AUD_CONF0_I2S_IN_EN_0,
|
||||||
HDMI_AUD_CONF0);
|
HDMI_AUD_CONF0);
|
||||||
|
|
||||||
|
|
||||||
hdmi_write(hdmi, HDMI_AUD_CONF1_I2S_MODE_STANDARD_MODE |
|
hdmi_write(hdmi, HDMI_AUD_CONF1_I2S_MODE_STANDARD_MODE |
|
||||||
HDMI_AUD_CONF1_I2S_WIDTH_16BIT, HDMI_AUD_CONF1);
|
HDMI_AUD_CONF1_I2S_WIDTH_16BIT, HDMI_AUD_CONF1);
|
||||||
|
|
||||||
|
|
|
@ -1064,7 +1064,6 @@ int exynos_dp_enable(struct udevice *dev, int panel_bpp,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static const struct dm_display_ops exynos_dp_ops = {
|
static const struct dm_display_ops exynos_dp_ops = {
|
||||||
.enable = exynos_dp_enable,
|
.enable = exynos_dp_enable,
|
||||||
};
|
};
|
||||||
|
|
|
@ -65,7 +65,6 @@ void exynos_dp_enable_video_mute(struct exynos_dp *dp_regs, unsigned int enable)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void exynos_dp_init_analog_param(struct exynos_dp *dp_regs)
|
static void exynos_dp_init_analog_param(struct exynos_dp *dp_regs)
|
||||||
{
|
{
|
||||||
unsigned int reg;
|
unsigned int reg;
|
||||||
|
|
|
@ -143,7 +143,6 @@ enum ipu_dmfc_type {
|
||||||
DMFC_HIGH_RESOLUTION_ONLY_DP,
|
DMFC_HIGH_RESOLUTION_ONLY_DP,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Union of initialization parameters for a logical channel.
|
* Union of initialization parameters for a logical channel.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -204,7 +204,6 @@ static void clk_ipu_disable(struct clk *clk)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static struct clk ipu_clk = {
|
static struct clk ipu_clk = {
|
||||||
.name = "ipu_clk",
|
.name = "ipu_clk",
|
||||||
#if defined(CONFIG_MX51) || defined(CONFIG_MX53)
|
#if defined(CONFIG_MX51) || defined(CONFIG_MX53)
|
||||||
|
@ -272,7 +271,6 @@ static inline int ipu_is_dmfc_chan(uint32_t dma_chan)
|
||||||
return ((dma_chan >= 23) && (dma_chan <= 29));
|
return ((dma_chan >= 23) && (dma_chan <= 29));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static inline void ipu_ch_param_set_buffer(uint32_t ch, int bufNum,
|
static inline void ipu_ch_param_set_buffer(uint32_t ch, int bufNum,
|
||||||
dma_addr_t phyaddr)
|
dma_addr_t phyaddr)
|
||||||
{
|
{
|
||||||
|
@ -588,7 +586,6 @@ int32_t ipu_init_channel(ipu_channel_t channel, ipu_channel_params_t *params)
|
||||||
clk_enable(g_ipu_clk);
|
clk_enable(g_ipu_clk);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (g_channel_init_mask & (1L << IPU_CHAN_ID(channel))) {
|
if (g_channel_init_mask & (1L << IPU_CHAN_ID(channel))) {
|
||||||
printf("Warning: channel already initialized %d\n",
|
printf("Warning: channel already initialized %d\n",
|
||||||
IPU_CHAN_ID(channel));
|
IPU_CHAN_ID(channel));
|
||||||
|
@ -954,7 +951,6 @@ static void ipu_ch_param_init(int ch,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (uv_stride)
|
if (uv_stride)
|
||||||
ipu_ch_param_set_field(¶ms, 1, 128, 14, uv_stride - 1);
|
ipu_ch_param_set_field(¶ms, 1, 128, 14, uv_stride - 1);
|
||||||
|
|
||||||
|
|
|
@ -353,13 +353,11 @@ struct ipu_dmfc {
|
||||||
#define DMFC_GENERAL1 (&DMFC_REG->general[0])
|
#define DMFC_GENERAL1 (&DMFC_REG->general[0])
|
||||||
#define DMFC_IC_CTRL (&DMFC_REG->ic_ctrl)
|
#define DMFC_IC_CTRL (&DMFC_REG->ic_ctrl)
|
||||||
|
|
||||||
|
|
||||||
#define DC_REG ((struct ipu_dc *)(IPU_CTRL_BASE_ADDR + \
|
#define DC_REG ((struct ipu_dc *)(IPU_CTRL_BASE_ADDR + \
|
||||||
IPU_DC_REG_BASE))
|
IPU_DC_REG_BASE))
|
||||||
#define DC_MAP_CONF_PTR(n) (&DC_REG->dc_map_ptr[n / 2])
|
#define DC_MAP_CONF_PTR(n) (&DC_REG->dc_map_ptr[n / 2])
|
||||||
#define DC_MAP_CONF_VAL(n) (&DC_REG->dc_map_val[n / 2])
|
#define DC_MAP_CONF_VAL(n) (&DC_REG->dc_map_val[n / 2])
|
||||||
|
|
||||||
|
|
||||||
static inline struct ipu_dc_ch *dc_ch_offset(int ch)
|
static inline struct ipu_dc_ch *dc_ch_offset(int ch)
|
||||||
{
|
{
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
|
|
|
@ -334,7 +334,6 @@ static void mvebu_lcd_register_init(struct mvebu_lcd_info *lcd_info,
|
||||||
*/
|
*/
|
||||||
writel(0x00000000, regs + MVEBU_LCD_SPU_SRAM_PARA1);
|
writel(0x00000000, regs + MVEBU_LCD_SPU_SRAM_PARA1);
|
||||||
|
|
||||||
|
|
||||||
/* Clock settings in the at 01A8 and in the range F0A0 see below */
|
/* Clock settings in the at 01A8 and in the range F0A0 see below */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -250,7 +250,6 @@ static int pwm_backlight_of_to_plat(struct udevice *dev)
|
||||||
priv->cur_level = priv->default_level;
|
priv->cur_level = priv->default_level;
|
||||||
log_debug("done\n");
|
log_debug("done\n");
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,6 @@ static void rk_edp_init_refclk(struct rk3288_edp *regs, enum rockchip_dp_types c
|
||||||
reg ^= REF_CLK_MASK;
|
reg ^= REF_CLK_MASK;
|
||||||
writel(reg, ®s->pll_reg_1);
|
writel(reg, ®s->pll_reg_1);
|
||||||
|
|
||||||
|
|
||||||
writel(LDO_OUTPUT_V_SEL_145 | KVCO_DEFALUT | CHG_PUMP_CUR_SEL_5US |
|
writel(LDO_OUTPUT_V_SEL_145 | KVCO_DEFALUT | CHG_PUMP_CUR_SEL_5US |
|
||||||
V2L_CUR_SEL_1MA, ®s->pll_reg_2);
|
V2L_CUR_SEL_1MA, ®s->pll_reg_2);
|
||||||
|
|
||||||
|
@ -314,7 +313,6 @@ static int rk_edp_dpcd_write(struct rk3288_edp *regs, u32 addr, u8 *values,
|
||||||
return rk_edp_dpcd_transfer(regs, addr, values, size, DPCD_WRITE);
|
return rk_edp_dpcd_transfer(regs, addr, values, size, DPCD_WRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int rk_edp_link_power_up(struct rk_edp_priv *edp)
|
static int rk_edp_link_power_up(struct rk_edp_priv *edp)
|
||||||
{
|
{
|
||||||
u8 value;
|
u8 value;
|
||||||
|
|
|
@ -28,5 +28,4 @@ int rk_mipi_dsi_enable(struct udevice *dev,
|
||||||
|
|
||||||
int rk_mipi_phy_enable(struct udevice *dev);
|
int rk_mipi_phy_enable(struct udevice *dev);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -412,7 +412,6 @@ int main(int arg, char **argv)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
////
|
////
|
||||||
|
@ -564,7 +563,6 @@ STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int p
|
||||||
STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap);
|
STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap);
|
||||||
// Query the font vertical metrics without having to create a font first.
|
// Query the font vertical metrics without having to create a font first.
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// NEW TEXTURE BAKING API
|
// NEW TEXTURE BAKING API
|
||||||
|
@ -737,7 +735,6 @@ STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, in
|
||||||
// need to do anything special to free it, because the contents are pure
|
// need to do anything special to free it, because the contents are pure
|
||||||
// value data with no additional data structures. Returns 0 on failure.
|
// value data with no additional data structures. Returns 0 on failure.
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// CHARACTER TO GLYPH-INDEX CONVERSIOn
|
// CHARACTER TO GLYPH-INDEX CONVERSIOn
|
||||||
|
@ -749,7 +746,6 @@ STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codep
|
||||||
// codepoint-based functions.
|
// codepoint-based functions.
|
||||||
// Returns 0 if the character codepoint is not defined in the font.
|
// Returns 0 if the character codepoint is not defined in the font.
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// CHARACTER PROPERTIES
|
// CHARACTER PROPERTIES
|
||||||
|
@ -919,7 +915,6 @@ STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info
|
||||||
STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);
|
STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1);
|
||||||
STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);
|
STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1);
|
||||||
|
|
||||||
|
|
||||||
// @TODO: don't expose this structure
|
// @TODO: don't expose this structure
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -994,8 +989,6 @@ STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, floa
|
||||||
// The algorithm has not been optimized at all, so expect it to be slow
|
// The algorithm has not been optimized at all, so expect it to be slow
|
||||||
// if computing lots of characters or very large sizes.
|
// if computing lots of characters or very large sizes.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Finding the right font...
|
// Finding the right font...
|
||||||
|
@ -1017,7 +1010,6 @@ STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, floa
|
||||||
// from the file yourself and do your own comparisons on them.
|
// from the file yourself and do your own comparisons on them.
|
||||||
// You have to have called stbtt_InitFont() first.
|
// You have to have called stbtt_InitFont() first.
|
||||||
|
|
||||||
|
|
||||||
STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags);
|
STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags);
|
||||||
// returns the offset (not index) of the font that matches, or -1 if none
|
// returns the offset (not index) of the font that matches, or -1 if none
|
||||||
// if you use STBTT_MACSTYLE_DONTCARE, use a font name like "Arial Bold".
|
// if you use STBTT_MACSTYLE_DONTCARE, use a font name like "Arial Bold".
|
||||||
|
@ -2809,7 +2801,6 @@ typedef struct stbtt__edge {
|
||||||
int invert;
|
int invert;
|
||||||
} stbtt__edge;
|
} stbtt__edge;
|
||||||
|
|
||||||
|
|
||||||
typedef struct stbtt__active_edge
|
typedef struct stbtt__active_edge
|
||||||
{
|
{
|
||||||
struct stbtt__active_edge *next;
|
struct stbtt__active_edge *next;
|
||||||
|
@ -4970,7 +4961,6 @@ STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const
|
||||||
|
|
||||||
#endif // STB_TRUETYPE_IMPLEMENTATION
|
#endif // STB_TRUETYPE_IMPLEMENTATION
|
||||||
|
|
||||||
|
|
||||||
// FULL VERSION HISTORY
|
// FULL VERSION HISTORY
|
||||||
//
|
//
|
||||||
// 1.25 (2021-07-11) many fixes
|
// 1.25 (2021-07-11) many fixes
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
* (C) Copyright 2017 Jernej Skrabec <jernej.skrabec@siol.net>
|
* (C) Copyright 2017 Jernej Skrabec <jernej.skrabec@siol.net>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <asm/arch/tve.h>
|
#include <asm/arch/tve.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
|
|
|
@ -627,7 +627,6 @@ static int tegra_dc_dp_calc_config(struct tegra_dp_priv *dp,
|
||||||
if (link_cfg->hblank_sym < 0)
|
if (link_cfg->hblank_sym < 0)
|
||||||
link_cfg->hblank_sym = 0;
|
link_cfg->hblank_sym = 0;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Refer to dev_disp.ref for more information.
|
* Refer to dev_disp.ref for more information.
|
||||||
* # symbols/vblank = ((SetRasterBlankStart.X -
|
* # symbols/vblank = ((SetRasterBlankStart.X -
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#define FB_VMODE_SMOOTH_XPAN 512 /* smooth xpan possible (internally used) */
|
#define FB_VMODE_SMOOTH_XPAN 512 /* smooth xpan possible (internally used) */
|
||||||
#define FB_VMODE_CONUPDATE 512 /* don't update x/yoffset */
|
#define FB_VMODE_CONUPDATE 512 /* don't update x/yoffset */
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* Resolution Struct
|
* Resolution Struct
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
Loading…
Add table
Reference in a new issue