提交 3ee6b26b 编写于 作者: A Alex Deucher 提交者: Dave Airlie

drm/amd/display: whitespace cleanup in amdgpu_dm.c/h

To match kernel standards.  No intended functional change.
Reviewed-by: NHarry Wentland <harry.wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 1daf8c63
...@@ -206,12 +206,10 @@ void amdgpu_dm_destroy(void); ...@@ -206,12 +206,10 @@ void amdgpu_dm_destroy(void);
* *
* Returns 0 on success * Returns 0 on success
*/ */
int amdgpu_dm_initialize_drm_device( int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev);
struct amdgpu_device *adev);
/* removes and deallocates the drm structures, created by the above function */ /* removes and deallocates the drm structures, created by the above function */
void amdgpu_dm_destroy_drm_device( void amdgpu_dm_destroy_drm_device(struct amdgpu_display_manager *dm);
struct amdgpu_display_manager *dm);
/* Locking/Mutex */ /* Locking/Mutex */
bool amdgpu_dm_acquire_dal_lock(struct amdgpu_display_manager *dm); bool amdgpu_dm_acquire_dal_lock(struct amdgpu_display_manager *dm);
...@@ -223,8 +221,8 @@ void amdgpu_dm_register_backlight_device(struct amdgpu_display_manager *dm); ...@@ -223,8 +221,8 @@ void amdgpu_dm_register_backlight_device(struct amdgpu_display_manager *dm);
extern const struct amdgpu_ip_block_version dm_ip_block; extern const struct amdgpu_ip_block_version dm_ip_block;
void amdgpu_dm_update_connector_after_detect( void
struct amdgpu_dm_connector *aconnector); amdgpu_dm_update_connector_after_detect(struct amdgpu_dm_connector *aconnector);
struct amdgpu_framebuffer; struct amdgpu_framebuffer;
struct amdgpu_display_manager; struct amdgpu_display_manager;
...@@ -256,19 +254,18 @@ struct dm_atomic_state { ...@@ -256,19 +254,18 @@ struct dm_atomic_state {
/*TODO Jodan Hersen use the one in amdgpu_dm*/ /*TODO Jodan Hersen use the one in amdgpu_dm*/
int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm, int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm,
struct amdgpu_plane *aplane, struct amdgpu_plane *aplane,
unsigned long possible_crtcs); unsigned long possible_crtcs);
int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm, int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm,
struct drm_plane *plane, struct drm_plane *plane,
uint32_t link_index); uint32_t link_index);
int amdgpu_dm_connector_init(struct amdgpu_display_manager *dm, int amdgpu_dm_connector_init(struct amdgpu_display_manager *dm,
struct amdgpu_dm_connector *amdgpu_dm_connector, struct amdgpu_dm_connector *amdgpu_dm_connector,
uint32_t link_index, uint32_t link_index,
struct amdgpu_encoder *amdgpu_encoder); struct amdgpu_encoder *amdgpu_encoder);
int amdgpu_dm_encoder_init( int amdgpu_dm_encoder_init(struct drm_device *dev,
struct drm_device *dev, struct amdgpu_encoder *aencoder,
struct amdgpu_encoder *aencoder, uint32_t link_index);
uint32_t link_index);
void amdgpu_dm_crtc_destroy(struct drm_crtc *crtc); void amdgpu_dm_crtc_destroy(struct drm_crtc *crtc);
void amdgpu_dm_connector_destroy(struct drm_connector *connector); void amdgpu_dm_connector_destroy(struct drm_connector *connector);
...@@ -276,53 +273,47 @@ void amdgpu_dm_encoder_destroy(struct drm_encoder *encoder); ...@@ -276,53 +273,47 @@ void amdgpu_dm_encoder_destroy(struct drm_encoder *encoder);
int amdgpu_dm_connector_get_modes(struct drm_connector *connector); int amdgpu_dm_connector_get_modes(struct drm_connector *connector);
int amdgpu_dm_atomic_commit( int amdgpu_dm_atomic_commit(struct drm_device *dev,
struct drm_device *dev, struct drm_atomic_state *state,
struct drm_atomic_state *state, bool nonblock);
bool nonblock);
void amdgpu_dm_atomic_commit_tail( void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state);
struct drm_atomic_state *state);
int amdgpu_dm_atomic_check(struct drm_device *dev, int amdgpu_dm_atomic_check(struct drm_device *dev,
struct drm_atomic_state *state); struct drm_atomic_state *state);
void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector); void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector);
struct drm_connector_state *amdgpu_dm_connector_atomic_duplicate_state( struct drm_connector_state *
struct drm_connector *connector); amdgpu_dm_connector_atomic_duplicate_state(struct drm_connector *connector);
int amdgpu_dm_connector_atomic_set_property( int amdgpu_dm_connector_atomic_set_property(struct drm_connector *connector,
struct drm_connector *connector, struct drm_connector_state *state,
struct drm_connector_state *state, struct drm_property *property,
struct drm_property *property, uint64_t val);
uint64_t val);
int amdgpu_dm_connector_atomic_get_property(struct drm_connector *connector,
int amdgpu_dm_connector_atomic_get_property( const struct drm_connector_state *state,
struct drm_connector *connector, struct drm_property *property,
const struct drm_connector_state *state, uint64_t *val);
struct drm_property *property,
uint64_t *val);
int amdgpu_dm_get_encoder_crtc_mask(struct amdgpu_device *adev); int amdgpu_dm_get_encoder_crtc_mask(struct amdgpu_device *adev);
void amdgpu_dm_connector_init_helper( void amdgpu_dm_connector_init_helper(struct amdgpu_display_manager *dm,
struct amdgpu_display_manager *dm, struct amdgpu_dm_connector *aconnector,
struct amdgpu_dm_connector *aconnector, int connector_type,
int connector_type, struct dc_link *link,
struct dc_link *link, int link_index);
int link_index);
int amdgpu_dm_connector_mode_valid( int amdgpu_dm_connector_mode_valid(struct drm_connector *connector,
struct drm_connector *connector, struct drm_display_mode *mode);
struct drm_display_mode *mode);
void dm_restore_drm_connector_state(struct drm_device *dev, struct drm_connector *connector); void dm_restore_drm_connector_state(struct drm_device *dev,
struct drm_connector *connector);
void amdgpu_dm_add_sink_to_freesync_module( void amdgpu_dm_add_sink_to_freesync_module(struct drm_connector *connector,
struct drm_connector *connector, struct edid *edid);
struct edid *edid);
void amdgpu_dm_remove_sink_from_freesync_module( void
struct drm_connector *connector); amdgpu_dm_remove_sink_from_freesync_module(struct drm_connector *connector);
extern const struct drm_encoder_helper_funcs amdgpu_dm_encoder_helper_funcs; extern const struct drm_encoder_helper_funcs amdgpu_dm_encoder_helper_funcs;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册