]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/panfrost: Fix panfrost device variable name in devfreq
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Tue, 20 May 2025 17:44:02 +0000 (18:44 +0100)
committerSteven Price <steven.price@arm.com>
Mon, 2 Jun 2025 12:51:15 +0000 (13:51 +0100)
Commit 64111a0e22a9 ("drm/panfrost: Fix incorrect updating of current
device frequency") was a Panfrost port of a similar fix in Panthor.

Fix the Panfrost device pointer variable name so that it follows
Panfrost naming conventions.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Fixes: 64111a0e22a9 ("drm/panfrost: Fix incorrect updating of current device frequency")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250520174634.353267-6-adrian.larumbe@collabora.com
drivers/gpu/drm/panfrost/panfrost_devfreq.c

index 3385fd3ef41a47d15e949f59942226d610ff81a4..5d0dce10336ba3954ce1695bbe0e8948b3e978ab 100644 (file)
@@ -29,7 +29,7 @@ static void panfrost_devfreq_update_utilization(struct panfrost_devfreq *pfdevfr
 static int panfrost_devfreq_target(struct device *dev, unsigned long *freq,
                                   u32 flags)
 {
-       struct panfrost_device *ptdev = dev_get_drvdata(dev);
+       struct panfrost_device *pfdev = dev_get_drvdata(dev);
        struct dev_pm_opp *opp;
        int err;
 
@@ -40,7 +40,7 @@ static int panfrost_devfreq_target(struct device *dev, unsigned long *freq,
 
        err = dev_pm_opp_set_rate(dev, *freq);
        if (!err)
-               ptdev->pfdevfreq.current_frequency = *freq;
+               pfdev->pfdevfreq.current_frequency = *freq;
 
        return err;
 }