mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-01 00:58:39 +02:00 
			
		
		
		
	 4d66d841a7
			
		
	
	
		4d66d841a7
		
			
		
	
	
	
	
		
			
			While most display helpers Kconfig symbols have the DRM_DISPLAY prefix, the DisplayPort-AUX chardev interface uses DRM_DP_AUX_CHARDEV. Since the number of users is limited and it's a selected symbol, we can easily rename it to make it consistent. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20240327-kms-kconfig-helpers-v3-3-eafee11b84b3@kernel.org Signed-off-by: Maxime Ripard <mripard@kernel.org>
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			638 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			638 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: MIT */
 | |
| 
 | |
| #ifndef DRM_DP_HELPER_INTERNAL_H
 | |
| #define DRM_DP_HELPER_INTERNAL_H
 | |
| 
 | |
| struct drm_dp_aux;
 | |
| 
 | |
| #ifdef CONFIG_DRM_DISPLAY_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
 |