Skip to content

Commit 96b7182

Browse files
Marek Vasutrobertfoss
authored andcommitted
drm/bridge: ti-sn65dsi83: Fix syntax formatting issues
Fix checkpatch.pl --strict -f drivers/gpu/drm/bridge/ti-sn65dsi83.c CHECKs, no functional change. This is the same modification done to V7 of the original patch. Signed-off-by: Marek Vasut <[email protected]> Cc: Adam Ford <[email protected]> Cc: Douglas Anderson <[email protected]> Cc: Frieder Schrempf <[email protected]> Cc: Jagan Teki <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Loic Poulain <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Philippe Schenker <[email protected]> Cc: Sam Ravnborg <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: Valentin Raevsky <[email protected]> To: [email protected] Reviewed-by: Robert Foss <[email protected]> Signed-off-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f91142c commit 96b7182

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

drivers/gpu/drm/bridge/ti-sn65dsi83.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -377,19 +377,19 @@ static void sn65dsi83_enable(struct drm_bridge *bridge)
377377

378378
/* Reference clock derived from DSI link clock. */
379379
regmap_write(ctx->regmap, REG_RC_LVDS_PLL,
380-
REG_RC_LVDS_PLL_LVDS_CLK_RANGE(sn65dsi83_get_lvds_range(ctx)) |
381-
REG_RC_LVDS_PLL_HS_CLK_SRC_DPHY);
380+
REG_RC_LVDS_PLL_LVDS_CLK_RANGE(sn65dsi83_get_lvds_range(ctx)) |
381+
REG_RC_LVDS_PLL_HS_CLK_SRC_DPHY);
382382
regmap_write(ctx->regmap, REG_DSI_CLK,
383-
REG_DSI_CLK_CHA_DSI_CLK_RANGE(sn65dsi83_get_dsi_range(ctx)));
383+
REG_DSI_CLK_CHA_DSI_CLK_RANGE(sn65dsi83_get_dsi_range(ctx)));
384384
regmap_write(ctx->regmap, REG_RC_DSI_CLK,
385-
REG_RC_DSI_CLK_DSI_CLK_DIVIDER(sn65dsi83_get_dsi_div(ctx)));
385+
REG_RC_DSI_CLK_DSI_CLK_DIVIDER(sn65dsi83_get_dsi_div(ctx)));
386386

387387
/* Set number of DSI lanes and LVDS link config. */
388388
regmap_write(ctx->regmap, REG_DSI_LANE,
389-
REG_DSI_LANE_DSI_CHANNEL_MODE_SINGLE |
390-
REG_DSI_LANE_CHA_DSI_LANES(~(ctx->dsi_lanes - 1)) |
391-
/* CHB is DSI85-only, set to default on DSI83/DSI84 */
392-
REG_DSI_LANE_CHB_DSI_LANES(3));
389+
REG_DSI_LANE_DSI_CHANNEL_MODE_SINGLE |
390+
REG_DSI_LANE_CHA_DSI_LANES(~(ctx->dsi_lanes - 1)) |
391+
/* CHB is DSI85-only, set to default on DSI83/DSI84 */
392+
REG_DSI_LANE_CHB_DSI_LANES(3));
393393
/* No equalization. */
394394
regmap_write(ctx->regmap, REG_DSI_EQ, 0x00);
395395

@@ -420,10 +420,10 @@ static void sn65dsi83_enable(struct drm_bridge *bridge)
420420
regmap_write(ctx->regmap, REG_LVDS_FMT, val);
421421
regmap_write(ctx->regmap, REG_LVDS_VCOM, 0x05);
422422
regmap_write(ctx->regmap, REG_LVDS_LANE,
423-
(ctx->lvds_dual_link_even_odd_swap ?
424-
REG_LVDS_LANE_EVEN_ODD_SWAP : 0) |
425-
REG_LVDS_LANE_CHA_LVDS_TERM |
426-
REG_LVDS_LANE_CHB_LVDS_TERM);
423+
(ctx->lvds_dual_link_even_odd_swap ?
424+
REG_LVDS_LANE_EVEN_ODD_SWAP : 0) |
425+
REG_LVDS_LANE_CHA_LVDS_TERM |
426+
REG_LVDS_LANE_CHB_LVDS_TERM);
427427
regmap_write(ctx->regmap, REG_LVDS_CM, 0x00);
428428

429429
val = cpu_to_le16(ctx->mode.hdisplay);
@@ -455,8 +455,8 @@ static void sn65dsi83_enable(struct drm_bridge *bridge)
455455
regmap_write(ctx->regmap, REG_RC_PLL_EN, REG_RC_PLL_EN_PLL_EN);
456456
usleep_range(3000, 4000);
457457
ret = regmap_read_poll_timeout(ctx->regmap, REG_RC_LVDS_PLL, pval,
458-
pval & REG_RC_LVDS_PLL_PLL_EN_STAT,
459-
1000, 100000);
458+
pval & REG_RC_LVDS_PLL_PLL_EN_STAT,
459+
1000, 100000);
460460
if (ret) {
461461
dev_err(ctx->dev, "failed to lock PLL, ret=%i\n", ret);
462462
/* On failure, disable PLL again and exit. */
@@ -513,8 +513,8 @@ static void sn65dsi83_mode_set(struct drm_bridge *bridge,
513513
}
514514

515515
static bool sn65dsi83_mode_fixup(struct drm_bridge *bridge,
516-
const struct drm_display_mode *mode,
517-
struct drm_display_mode *adj)
516+
const struct drm_display_mode *mode,
517+
struct drm_display_mode *adj)
518518
{
519519
struct sn65dsi83 *ctx = bridge_to_sn65dsi83(bridge);
520520
u32 input_bus_format = MEDIA_BUS_FMT_RGB888_1X24;
@@ -546,8 +546,8 @@ static bool sn65dsi83_mode_fixup(struct drm_bridge *bridge,
546546
ctx->lvds_format_24bpp = true;
547547
ctx->lvds_format_jeida = false;
548548
dev_warn(ctx->dev,
549-
"Unsupported LVDS bus format 0x%04x, please check output bridge driver. Falling back to SPWG24.\n",
550-
connector->display_info.bus_formats[0]);
549+
"Unsupported LVDS bus format 0x%04x, please check output bridge driver. Falling back to SPWG24.\n",
550+
connector->display_info.bus_formats[0]);
551551
break;
552552
}
553553

0 commit comments

Comments
 (0)