Commit 6c70faf1 authored by Sean Paul's avatar Sean Paul Committed by Thierry Reding

drm: Fix warning when building docs for scdc_helper

Fixes:
../drivers/gpu/drm/drm_scdc_helper.c:203: ERROR: Unexpected indentation.
../drivers/gpu/drm/drm_scdc_helper.c:204: WARNING: Block quote ends without a blank line; unexpected unindent.

Changes in v2:
 - Property blockquote TMDS calculations so they look pretty (Daniel)
 - Remove duplicate documentation from the header file
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
Reviewed-by: default avatarShashank Sharma <shashank.sharma@intel.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170720200921.36897-1-seanpaul@chromium.org
parent 8d0873a2
...@@ -194,19 +194,26 @@ EXPORT_SYMBOL(drm_scdc_set_scrambling); ...@@ -194,19 +194,26 @@ EXPORT_SYMBOL(drm_scdc_set_scrambling);
* @adapter: I2C adapter for DDC channel * @adapter: I2C adapter for DDC channel
* @set: ret or reset the high clock ratio * @set: ret or reset the high clock ratio
* *
* TMDS clock ratio calculations go like this: *
* TMDS character = 10 bit TMDS encoded value * TMDS clock ratio calculations go like this:
* TMDS character rate = The rate at which TMDS characters are transmitted(Mcsc) * TMDS character = 10 bit TMDS encoded value
* TMDS bit rate = 10x TMDS character rate *
* As per the spec: * TMDS character rate = The rate at which TMDS characters are
* TMDS clock rate for pixel clock < 340 MHz = 1x the character rate * transmitted (Mcsc)
* = 1/10 pixel clock rate *
* TMDS clock rate for pixel clock > 340 MHz = 0.25x the character rate * TMDS bit rate = 10x TMDS character rate
* = 1/40 pixel clock rate *
* * As per the spec:
* Writes to the TMDS config register over SCDC channel, and: * TMDS clock rate for pixel clock < 340 MHz = 1x the character
* sets TMDS clock ratio to 1/40 when set = 1 * rate = 1/10 pixel clock rate
* sets TMDS clock ratio to 1/10 when set = 0 *
* TMDS clock rate for pixel clock > 340 MHz = 0.25x the character
* rate = 1/40 pixel clock rate
*
* Writes to the TMDS config register over SCDC channel, and:
* sets TMDS clock ratio to 1/40 when set = 1
*
* sets TMDS clock ratio to 1/10 when set = 0
* *
* Returns: * Returns:
* True if write is successful, false otherwise. * True if write is successful, false otherwise.
......
...@@ -131,31 +131,6 @@ static inline int drm_scdc_writeb(struct i2c_adapter *adapter, u8 offset, ...@@ -131,31 +131,6 @@ static inline int drm_scdc_writeb(struct i2c_adapter *adapter, u8 offset,
bool drm_scdc_get_scrambling_status(struct i2c_adapter *adapter); bool drm_scdc_get_scrambling_status(struct i2c_adapter *adapter);
/**
* drm_scdc_set_scrambling - enable scrambling
* @adapter: I2C adapter for DDC channel
* @enable: bool to indicate if scrambling is to be enabled/disabled
*
* Writes the TMDS config register over SCDC channel, and:
* enables scrambling when enable = 1
* disables scrambling when enable = 0
*
* Returns:
* True if scrambling is set/reset successfully, false otherwise.
*/
bool drm_scdc_set_scrambling(struct i2c_adapter *adapter, bool enable); bool drm_scdc_set_scrambling(struct i2c_adapter *adapter, bool enable);
/**
* drm_scdc_set_high_tmds_clock_ratio - set TMDS clock ratio
* @adapter: I2C adapter for DDC channel
* @set: ret or reset the high clock ratio
*
* Writes to the TMDS config register over SCDC channel, and:
* sets TMDS clock ratio to 1/40 when set = 1
* sets TMDS clock ratio to 1/10 when set = 0
*
* Returns:
* True if write is successful, false otherwise.
*/
bool drm_scdc_set_high_tmds_clock_ratio(struct i2c_adapter *adapter, bool set); bool drm_scdc_set_high_tmds_clock_ratio(struct i2c_adapter *adapter, bool set);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment