-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/dp: Move DP declarations into separate header file
Split the DP declarations from other helpers before moving the DP functions into a separate module. v2: * forward-declare struct drm_dp_aux (Jani) * add include guards in drm_dp_helper_internal.h Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Daniel Vetter <daniel@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20220114114535.29157-3-tzimmermann@suse.de
- Loading branch information
Thomas Zimmermann
committed
Jan 17, 2022
1 parent
dfacce5
commit 3681eb2
Showing
6 changed files
with
37 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* SPDX-License-Identifier: MIT */ | ||
|
||
#ifndef DRM_DP_HELPER_INTERNAL_H | ||
#define DRM_DP_HELPER_INTERNAL_H | ||
|
||
struct drm_dp_aux; | ||
|
||
#ifdef CONFIG_DRM_DP_AUX_CHARDEV | ||
int drm_dp_aux_dev_init(void); | ||
void drm_dp_aux_dev_exit(void); | ||
int drm_dp_aux_register_devnode(struct drm_dp_aux *aux); | ||
void drm_dp_aux_unregister_devnode(struct drm_dp_aux *aux); | ||
#else | ||
static inline int drm_dp_aux_dev_init(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void drm_dp_aux_dev_exit(void) | ||
{ | ||
} | ||
|
||
static inline int drm_dp_aux_register_devnode(struct drm_dp_aux *aux) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void drm_dp_aux_unregister_devnode(struct drm_dp_aux *aux) | ||
{ | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters