OSDN Git Service

drm/dbi: Use a static inline stub for mipi_dbi_debugfs_init()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Dec 2021 19:37:54 +0000 (21:37 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Dec 2021 20:41:01 +0000 (22:41 +0200)
Replace the slightly odd "#define <function> NULL" thing with
a standard static inline stub.

Cc: Noralf Trønnes <noralf@tronnes.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211221193754.12287-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
include/drm/drm_mipi_dbi.h

index 05e1949..6fe13cc 100644 (file)
@@ -194,7 +194,7 @@ int mipi_dbi_buf_copy(void *dst, struct drm_framebuffer *fb,
 #ifdef CONFIG_DEBUG_FS
 void mipi_dbi_debugfs_init(struct drm_minor *minor);
 #else
-#define mipi_dbi_debugfs_init          NULL
+static inline void mipi_dbi_debugfs_init(struct drm_minor *minor) {}
 #endif
 
 #endif /* __LINUX_MIPI_DBI_H */