Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: host1x: drm: Rename host1x to host1x_drm

Both host1x and drm drivers have host1x structures. This patch
renames the host1x structure under drm to follow name host1x_drm.

Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>

authored by

Arto Merilainen and committed by
Thierry Reding
c89c0ea6 4231c6b0

+28 -26
+2 -2
drivers/gpu/host1x/drm/dc.c
··· 1097 1097 1098 1098 static int tegra_dc_probe(struct platform_device *pdev) 1099 1099 { 1100 - struct host1x *host1x = dev_get_drvdata(pdev->dev.parent); 1100 + struct host1x_drm *host1x = dev_get_drvdata(pdev->dev.parent); 1101 1101 struct resource *regs; 1102 1102 struct tegra_dc *dc; 1103 1103 int err; ··· 1160 1160 1161 1161 static int tegra_dc_remove(struct platform_device *pdev) 1162 1162 { 1163 - struct host1x *host1x = dev_get_drvdata(pdev->dev.parent); 1163 + struct host1x_drm *host1x = dev_get_drvdata(pdev->dev.parent); 1164 1164 struct tegra_dc *dc = platform_get_drvdata(pdev); 1165 1165 int err; 1166 1166
+2 -2
drivers/gpu/host1x/drm/drm.c
··· 26 26 static int tegra_drm_load(struct drm_device *drm, unsigned long flags) 27 27 { 28 28 struct device *dev = drm->dev; 29 - struct host1x *host1x; 29 + struct host1x_drm *host1x; 30 30 int err; 31 31 32 32 host1x = dev_get_drvdata(dev); ··· 69 69 70 70 static void tegra_drm_lastclose(struct drm_device *drm) 71 71 { 72 - struct host1x *host1x = drm->dev_private; 72 + struct host1x_drm *host1x = drm->dev_private; 73 73 74 74 drm_fbdev_cma_restore_mode(host1x->fbdev); 75 75 }
+7 -7
drivers/gpu/host1x/drm/drm.h
··· 18 18 #include <drm/drm_fb_cma_helper.h> 19 19 #include <drm/drm_fixed.h> 20 20 21 - struct host1x { 21 + struct host1x_drm { 22 22 struct drm_device *drm; 23 23 struct device *dev; 24 24 void __iomem *regs; ··· 44 44 }; 45 45 46 46 struct host1x_client { 47 - struct host1x *host1x; 47 + struct host1x_drm *host1x; 48 48 struct device *dev; 49 49 50 50 const struct host1x_client_ops *ops; ··· 52 52 struct list_head list; 53 53 }; 54 54 55 - extern int host1x_drm_init(struct host1x *host1x, struct drm_device *drm); 56 - extern int host1x_drm_exit(struct host1x *host1x); 55 + extern int host1x_drm_init(struct host1x_drm *host1x, struct drm_device *drm); 56 + extern int host1x_drm_exit(struct host1x_drm *host1x); 57 57 58 - extern int host1x_register_client(struct host1x *host1x, 58 + extern int host1x_register_client(struct host1x_drm *host1x, 59 59 struct host1x_client *client); 60 - extern int host1x_unregister_client(struct host1x *host1x, 60 + extern int host1x_unregister_client(struct host1x_drm *host1x, 61 61 struct host1x_client *client); 62 62 63 63 struct tegra_output; ··· 66 66 struct host1x_client client; 67 67 spinlock_t lock; 68 68 69 - struct host1x *host1x; 69 + struct host1x_drm *host1x; 70 70 struct device *dev; 71 71 72 72 struct drm_crtc base;
+3 -3
drivers/gpu/host1x/drm/fb.c
··· 11 11 12 12 static void tegra_drm_fb_output_poll_changed(struct drm_device *drm) 13 13 { 14 - struct host1x *host1x = drm->dev_private; 14 + struct host1x_drm *host1x = drm->dev_private; 15 15 16 16 drm_fbdev_cma_hotplug_event(host1x->fbdev); 17 17 } ··· 23 23 24 24 int tegra_drm_fb_init(struct drm_device *drm) 25 25 { 26 - struct host1x *host1x = drm->dev_private; 26 + struct host1x_drm *host1x = drm->dev_private; 27 27 struct drm_fbdev_cma *fbdev; 28 28 29 29 drm->mode_config.min_width = 0; ··· 46 46 47 47 void tegra_drm_fb_exit(struct drm_device *drm) 48 48 { 49 - struct host1x *host1x = drm->dev_private; 49 + struct host1x_drm *host1x = drm->dev_private; 50 50 51 51 drm_fbdev_cma_fini(host1x->fbdev); 52 52 }
+2 -2
drivers/gpu/host1x/drm/hdmi.c
··· 1189 1189 1190 1190 static int tegra_hdmi_probe(struct platform_device *pdev) 1191 1191 { 1192 - struct host1x *host1x = dev_get_drvdata(pdev->dev.parent); 1192 + struct host1x_drm *host1x = dev_get_drvdata(pdev->dev.parent); 1193 1193 struct tegra_hdmi *hdmi; 1194 1194 struct resource *regs; 1195 1195 int err; ··· 1278 1278 1279 1279 static int tegra_hdmi_remove(struct platform_device *pdev) 1280 1280 { 1281 - struct host1x *host1x = dev_get_drvdata(pdev->dev.parent); 1281 + struct host1x_drm *host1x = dev_get_drvdata(pdev->dev.parent); 1282 1282 struct tegra_hdmi *hdmi = platform_get_drvdata(pdev); 1283 1283 int err; 1284 1284
+12 -10
drivers/gpu/host1x/drm/host1x.c
··· 21 21 struct list_head list; 22 22 }; 23 23 24 - static int host1x_add_drm_client(struct host1x *host1x, struct device_node *np) 24 + static int host1x_add_drm_client(struct host1x_drm *host1x, 25 + struct device_node *np) 25 26 { 26 27 struct host1x_drm_client *client; 27 28 ··· 38 37 return 0; 39 38 } 40 39 41 - static int host1x_activate_drm_client(struct host1x *host1x, 40 + static int host1x_activate_drm_client(struct host1x_drm *host1x, 42 41 struct host1x_drm_client *drm, 43 42 struct host1x_client *client) 44 43 { ··· 51 50 return 0; 52 51 } 53 52 54 - static int host1x_remove_drm_client(struct host1x *host1x, 53 + static int host1x_remove_drm_client(struct host1x_drm *host1x, 55 54 struct host1x_drm_client *client) 56 55 { 57 56 mutex_lock(&host1x->drm_clients_lock); ··· 64 63 return 0; 65 64 } 66 65 67 - static int host1x_parse_dt(struct host1x *host1x) 66 + static int host1x_parse_dt(struct host1x_drm *host1x) 68 67 { 69 68 static const char * const compat[] = { 70 69 "nvidia,tegra20-dc", ··· 93 92 94 93 static int tegra_host1x_probe(struct platform_device *pdev) 95 94 { 96 - struct host1x *host1x; 95 + struct host1x_drm *host1x; 97 96 struct resource *regs; 98 97 int err; 99 98 ··· 157 156 158 157 static int tegra_host1x_remove(struct platform_device *pdev) 159 158 { 160 - struct host1x *host1x = platform_get_drvdata(pdev); 159 + struct host1x_drm *host1x = platform_get_drvdata(pdev); 161 160 162 161 clk_disable_unprepare(host1x->clk); 163 162 164 163 return 0; 165 164 } 166 165 167 - int host1x_drm_init(struct host1x *host1x, struct drm_device *drm) 166 + int host1x_drm_init(struct host1x_drm *host1x, struct drm_device *drm) 168 167 { 169 168 struct host1x_client *client; 170 169 ··· 187 186 return 0; 188 187 } 189 188 190 - int host1x_drm_exit(struct host1x *host1x) 189 + int host1x_drm_exit(struct host1x_drm *host1x) 191 190 { 192 191 struct platform_device *pdev = to_platform_device(host1x->dev); 193 192 struct host1x_client *client; ··· 217 216 return 0; 218 217 } 219 218 220 - int host1x_register_client(struct host1x *host1x, struct host1x_client *client) 219 + int host1x_register_client(struct host1x_drm *host1x, 220 + struct host1x_client *client) 221 221 { 222 222 struct host1x_drm_client *drm, *tmp; 223 223 int err; ··· 246 244 return 0; 247 245 } 248 246 249 - int host1x_unregister_client(struct host1x *host1x, 247 + int host1x_unregister_client(struct host1x_drm *host1x, 250 248 struct host1x_client *client) 251 249 { 252 250 struct host1x_drm_client *drm, *tmp;