Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934815AbdGTJ1I (ORCPT ); Thu, 20 Jul 2017 05:27:08 -0400 Received: from mail-qt0-f176.google.com ([209.85.216.176]:34972 "EHLO mail-qt0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934180AbdGTJ1F (ORCPT ); Thu, 20 Jul 2017 05:27:05 -0400 MIME-Version: 1.0 In-Reply-To: <1500373219-20233-2-git-send-email-philippe.cornu@st.com> References: <1500373219-20233-1-git-send-email-philippe.cornu@st.com> <1500373219-20233-2-git-send-email-philippe.cornu@st.com> From: Benjamin Gaignard Date: Thu, 20 Jul 2017 11:27:04 +0200 Message-ID: Subject: Re: [PATCH v1 1/7] drm/stm: drv: Rename platform driver name To: Philippe CORNU Cc: Yannick Fertre , Vincent Abriou , David Airlie , "dri-devel@lists.freedesktop.org" , Linux Kernel Mailing List , Fabien Dessenne , Mickael Reulier , Gabriel Fernandez , Ludovic Barre , Alexandre Torgue , Maxime Coquelin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2292 Lines: 65 2017-07-18 12:20 GMT+02:00 Philippe CORNU : > 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 Reviewed-by: Benjamin Gaignard > --- > drivers/gpu/drm/stm/drv.c | 21 +++++++-------------- > 1 file changed, 7 insertions(+), 14 deletions(-) > > diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c > index 83ab48f..095971f 100644 > --- a/drivers/gpu/drm/stm/drv.c > +++ b/drivers/gpu/drm/stm/drv.c > @@ -20,13 +20,6 @@ > > #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_HEIGHT 2048 /* same as width to handle orientation */ > > @@ -59,12 +52,12 @@ static void drv_lastclose(struct drm_device *ddev) > .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | > DRIVER_ATOMIC, > .lastclose = drv_lastclose, > - .name = DRIVER_NAME, > - .desc = DRIVER_DESC, > - .date = DRIVER_DATE, > - .major = DRIVER_MAJOR, > - .minor = DRIVER_MINOR, > - .patchlevel = DRIVER_PATCH_LEVEL, > + .name = "stm", > + .desc = "STMicroelectronics SoC DRM", > + .date = "20170330", > + .major = 1, > + .minor = 0, > + .patchlevel = 0, > .fops = &drv_driver_fops, > .dumb_create = drm_gem_cma_dumb_create, > .dumb_map_offset = drm_gem_cma_dumb_map_offset, > @@ -206,7 +199,7 @@ static int stm_drm_platform_remove(struct platform_device *pdev) > .probe = stm_drm_platform_probe, > .remove = stm_drm_platform_remove, > .driver = { > - .name = DRIVER_NAME, > + .name = "stm32-display", > .of_match_table = drv_dt_ids, > }, > }; > -- > 1.9.1 >