drm/stm: drv: Rename platform driver name
Rename the platform driver name from "stm" to "stm32-display" for a better readability in /sys/bus/platform/drivers entries. Note: We keep "stm" as drm_driver.name because it is better when using "modetest -M stm ..." (even if recent modetest patch avoids using -M). Signed-off-by: Philippe CORNU <philippe.cornu@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/1500552357-29487-2-git-send-email-philippe.cornu@st.com
This commit is contained in:
parent
367035c297
commit
af5125de7a
|
@ -20,13 +20,6 @@
|
||||||
|
|
||||||
#include "ltdc.h"
|
#include "ltdc.h"
|
||||||
|
|
||||||
#define DRIVER_NAME "stm"
|
|
||||||
#define DRIVER_DESC "STMicroelectronics SoC DRM"
|
|
||||||
#define DRIVER_DATE "20170330"
|
|
||||||
#define DRIVER_MAJOR 1
|
|
||||||
#define DRIVER_MINOR 0
|
|
||||||
#define DRIVER_PATCH_LEVEL 0
|
|
||||||
|
|
||||||
#define STM_MAX_FB_WIDTH 2048
|
#define STM_MAX_FB_WIDTH 2048
|
||||||
#define STM_MAX_FB_HEIGHT 2048 /* same as width to handle orientation */
|
#define STM_MAX_FB_HEIGHT 2048 /* same as width to handle orientation */
|
||||||
|
|
||||||
|
@ -59,12 +52,12 @@ static struct drm_driver drv_driver = {
|
||||||
.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME |
|
.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME |
|
||||||
DRIVER_ATOMIC,
|
DRIVER_ATOMIC,
|
||||||
.lastclose = drv_lastclose,
|
.lastclose = drv_lastclose,
|
||||||
.name = DRIVER_NAME,
|
.name = "stm",
|
||||||
.desc = DRIVER_DESC,
|
.desc = "STMicroelectronics SoC DRM",
|
||||||
.date = DRIVER_DATE,
|
.date = "20170330",
|
||||||
.major = DRIVER_MAJOR,
|
.major = 1,
|
||||||
.minor = DRIVER_MINOR,
|
.minor = 0,
|
||||||
.patchlevel = DRIVER_PATCH_LEVEL,
|
.patchlevel = 0,
|
||||||
.fops = &drv_driver_fops,
|
.fops = &drv_driver_fops,
|
||||||
.dumb_create = drm_gem_cma_dumb_create,
|
.dumb_create = drm_gem_cma_dumb_create,
|
||||||
.dumb_map_offset = drm_gem_cma_dumb_map_offset,
|
.dumb_map_offset = drm_gem_cma_dumb_map_offset,
|
||||||
|
@ -206,7 +199,7 @@ static struct platform_driver stm_drm_platform_driver = {
|
||||||
.probe = stm_drm_platform_probe,
|
.probe = stm_drm_platform_probe,
|
||||||
.remove = stm_drm_platform_remove,
|
.remove = stm_drm_platform_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = "stm32-display",
|
||||||
.of_match_table = drv_dt_ids,
|
.of_match_table = drv_dt_ids,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue