diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-10-28 12:38:20 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-11-14 14:08:57 +0200 |
commit | 876905b8fe59d06b20dd3e10502312447bd0a90d (patch) | |
tree | 32a0049cbe334d49fc269ac9a0233e2fde8e6b50 /drivers/gpu/drm/drm_print.c | |
parent | 99acf4716f99ce1925f73c7f47cab7b454ea56a5 (diff) | |
download | linux-876905b8fe59d06b20dd3e10502312447bd0a90d.tar.gz linux-876905b8fe59d06b20dd3e10502312447bd0a90d.tar.bz2 linux-876905b8fe59d06b20dd3e10502312447bd0a90d.zip |
drm/print: convert debug category macros into an enum
Mostly for improved documentation, convert the debug category macros
into an enum. Drop unused DRM_UT_NONE. Document previously undocumented
categories.
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Sean Paul <sean@poorly.run>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/96582479e7829d92b89adb805f829e23043ca85c.1572258936.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/drm_print.c')
-rw-r--r-- | drivers/gpu/drm/drm_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_print.c b/drivers/gpu/drm/drm_print.c index 703b126dd074..111b932cf2a9 100644 --- a/drivers/gpu/drm/drm_print.c +++ b/drivers/gpu/drm/drm_print.c @@ -256,7 +256,7 @@ void drm_dev_printk(const struct device *dev, const char *level, } EXPORT_SYMBOL(drm_dev_printk); -void drm_dev_dbg(const struct device *dev, unsigned int category, +void drm_dev_dbg(const struct device *dev, enum drm_debug_category category, const char *format, ...) { struct va_format vaf; @@ -280,7 +280,7 @@ void drm_dev_dbg(const struct device *dev, unsigned int category, } EXPORT_SYMBOL(drm_dev_dbg); -void __drm_dbg(unsigned int category, const char *format, ...) +void __drm_dbg(enum drm_debug_category category, const char *format, ...) { struct va_format vaf; va_list args; |