drm/fb-helper: Rename drm_fb_helper_alloc_fbi() to use _info postfix
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 3 Nov 2022 15:14:36 +0000 (16:14 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Sat, 5 Nov 2022 16:05:54 +0000 (17:05 +0100)
Rename drm_fb_helper_alloc_fbi() to drm_fb_helper_alloc_info() as
part of unifying the naming within fbdev helpers. Adapt drivers. No
functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221103151446.2638-14-tzimmermann@suse.de
drivers/gpu/drm/armada/armada_fbdev.c
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/exynos/exynos_drm_fbdev.c
drivers/gpu/drm/gma500/framebuffer.c
drivers/gpu/drm/i915/display/intel_fbdev.c
drivers/gpu/drm/msm/msm_fbdev.c
drivers/gpu/drm/nouveau/nouveau_fbcon.c
drivers/gpu/drm/omapdrm/omap_fbdev.c
drivers/gpu/drm/radeon/radeon_fb.c
drivers/gpu/drm/tegra/fb.c
include/drm/drm_fb_helper.h

index 38f5170c0fea66175eb40edafa8c9c9a1fd11130..eaae98d9377ae3f6d79d8a6e640645c7b57e2368 100644 (file)
@@ -72,7 +72,7 @@ static int armada_fbdev_create(struct drm_fb_helper *fbh,
        if (IS_ERR(dfb))
                return PTR_ERR(dfb);
 
-       info = drm_fb_helper_alloc_fbi(fbh);
+       info = drm_fb_helper_alloc_info(fbh);
        if (IS_ERR(info)) {
                ret = PTR_ERR(info);
                goto err_fballoc;
index 480bf4f568b7be8cedcf7539fbcc7d855c23c973..881e6a04fa706e17f6a625bacb6aebe859aa1800 100644 (file)
@@ -558,7 +558,7 @@ int drm_fb_helper_init(struct drm_device *dev,
 EXPORT_SYMBOL(drm_fb_helper_init);
 
 /**
- * drm_fb_helper_alloc_fbi - allocate fb_info and some of its members
+ * drm_fb_helper_alloc_info - allocate fb_info and some of its members
  * @fb_helper: driver-allocated fbdev helper
  *
  * A helper to alloc fb_info and the members cmap and apertures. Called
@@ -570,7 +570,7 @@ EXPORT_SYMBOL(drm_fb_helper_init);
  * fb_info pointer if things went okay, pointer containing error code
  * otherwise
  */
-struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper)
+struct fb_info *drm_fb_helper_alloc_info(struct drm_fb_helper *fb_helper)
 {
        struct device *dev = fb_helper->dev->dev;
        struct fb_info *info;
@@ -609,7 +609,7 @@ err_release:
        framebuffer_release(info);
        return ERR_PTR(ret);
 }
-EXPORT_SYMBOL(drm_fb_helper_alloc_fbi);
+EXPORT_SYMBOL(drm_fb_helper_alloc_info);
 
 /**
  * drm_fb_helper_unregister_fbi - unregister fb_info framebuffer device
@@ -2440,7 +2440,7 @@ static int drm_fb_helper_generic_probe(struct drm_fb_helper *fb_helper,
        fb_helper->fb = buffer->fb;
        fb = buffer->fb;
 
-       fbi = drm_fb_helper_alloc_fbi(fb_helper);
+       fbi = drm_fb_helper_alloc_info(fb_helper);
        if (IS_ERR(fbi))
                return PTR_ERR(fbi);
 
index 767afd2bfa822b93c51ed080b61b42a386004a62..8741eb0b1b6043f0556413180651b6e7785c4854 100644 (file)
@@ -63,7 +63,7 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
        unsigned int size = fb->width * fb->height * fb->format->cpp[0];
        unsigned long offset;
 
-       fbi = drm_fb_helper_alloc_fbi(helper);
+       fbi = drm_fb_helper_alloc_info(helper);
        if (IS_ERR(fbi)) {
                DRM_DEV_ERROR(to_dma_dev(helper->dev),
                              "failed to allocate fb info.\n");
index 5f502a0048ab803b966694f2a92669617d1968f2..6d0e3bf6435ee8440fe618c2d3380ea954473b4a 100644 (file)
@@ -268,7 +268,7 @@ static int psbfb_create(struct drm_fb_helper *fb_helper,
 
        memset(dev_priv->vram_addr + backing->offset, 0, size);
 
-       info = drm_fb_helper_alloc_fbi(fb_helper);
+       info = drm_fb_helper_alloc_info(fb_helper);
        if (IS_ERR(info)) {
                ret = PTR_ERR(info);
                goto err_drm_gem_object_put;
index d533ecd451025ad53d1d2f57691a3620733b7f0d..05b841343ea3e8ae745a4e9a9c796ad3d8c836e8 100644 (file)
@@ -254,7 +254,7 @@ static int intelfb_create(struct drm_fb_helper *helper,
                goto out_unlock;
        }
 
-       info = drm_fb_helper_alloc_fbi(helper);
+       info = drm_fb_helper_alloc_info(helper);
        if (IS_ERR(info)) {
                drm_err(&dev_priv->drm, "Failed to allocate fb_info (%pe)\n", info);
                ret = PTR_ERR(info);
index b373e3000320313f54d970ce7432f679455d5ba1..4d9a0fcbf95b601ff4f3de28450fd74b19f41931 100644 (file)
@@ -93,7 +93,7 @@ static int msm_fbdev_create(struct drm_fb_helper *helper,
                goto fail;
        }
 
-       fbi = drm_fb_helper_alloc_fbi(helper);
+       fbi = drm_fb_helper_alloc_info(helper);
        if (IS_ERR(fbi)) {
                DRM_DEV_ERROR(dev->dev, "failed to allocate fb info\n");
                ret = PTR_ERR(fbi);
index ac4bd529ae2e8eb1bc0ba7cebba42c4be40e7053..fca40124fc17c01a968057f9d0a4588c95d4f926 100644 (file)
@@ -362,7 +362,7 @@ nouveau_fbcon_create(struct drm_fb_helper *helper,
                }
        }
 
-       info = drm_fb_helper_alloc_fbi(helper);
+       info = drm_fb_helper_alloc_info(helper);
        if (IS_ERR(info)) {
                ret = PTR_ERR(info);
                goto out_unlock;
index 92d505be53e06370d10d19f2baf4da1d0bf62d0a..ab30c64e9704369dcb250e7cd3e40f589c974379 100644 (file)
@@ -161,7 +161,7 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
                goto fail;
        }
 
-       fbi = drm_fb_helper_alloc_fbi(helper);
+       fbi = drm_fb_helper_alloc_info(helper);
        if (IS_ERR(fbi)) {
                dev_err(dev->dev, "failed to allocate fb info\n");
                ret = PTR_ERR(fbi);
index cc6754d88b819c07f3f89c5d732865fab780e709..0c6a227929db21c098e8b1a73077f775d73e95d3 100644 (file)
@@ -243,7 +243,7 @@ static int radeonfb_create(struct drm_fb_helper *helper,
        rbo = gem_to_radeon_bo(gobj);
 
        /* okay we have an object now allocate the framebuffer */
-       info = drm_fb_helper_alloc_fbi(helper);
+       info = drm_fb_helper_alloc_info(helper);
        if (IS_ERR(info)) {
                ret = PTR_ERR(info);
                goto out;
index 6fe24535d0e43fa64a399dc8fee75805496b65f7..a09c071f3512058f4dd6434530cc90abe1811be4 100644 (file)
@@ -243,7 +243,7 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper,
        if (IS_ERR(bo))
                return PTR_ERR(bo);
 
-       info = drm_fb_helper_alloc_fbi(helper);
+       info = drm_fb_helper_alloc_info(helper);
        if (IS_ERR(info)) {
                dev_err(drm->dev, "failed to allocate framebuffer info\n");
                drm_gem_object_put(&bo->gem);
index d83e2d8e92eb9e0bd96c207e2f7b3a6f02cabbca..5ec9d9c68d1442db50cde94c5ee4bf02381da87c 100644 (file)
@@ -222,7 +222,7 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var,
 
 int drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper);
 
-struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper);
+struct fb_info *drm_fb_helper_alloc_info(struct drm_fb_helper *fb_helper);
 void drm_fb_helper_unregister_fbi(struct drm_fb_helper *fb_helper);
 void drm_fb_helper_fill_info(struct fb_info *info,
                             struct drm_fb_helper *fb_helper,
@@ -320,7 +320,7 @@ drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper)
 }
 
 static inline struct fb_info *
-drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper)
+drm_fb_helper_alloc_info(struct drm_fb_helper *fb_helper)
 {
        return NULL;
 }