Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3368b3c3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm: Fix the format prints in display driver"

parents 0666c38c 000a2f50
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -484,7 +484,7 @@ static int dsi_ctrl_init_regmap(struct platform_device *pdev,
	}

	ctrl->hw.base = ptr;
	pr_debug("[%s] map dsi_ctrl registers to %p\n", ctrl->name,
	pr_debug("[%s] map dsi_ctrl registers to %pK\n", ctrl->name,
		 ctrl->hw.base);

	ptr = msm_ioremap(pdev, "mmss_misc", ctrl->name);
+3 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016, 2018 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -93,7 +93,8 @@ static int dsi_phy_regmap_init(struct platform_device *pdev,

	phy->hw.base = ptr;

	pr_debug("[%s] map dsi_phy registers to %p\n", phy->name, phy->hw.base);
	pr_debug("[%s] map dsi_phy registers to %pK\n",
		phy->name, phy->hw.base);

	return rc;
}
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2015,2018 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -54,7 +54,7 @@ static struct msm_edp *edp_init(struct platform_device *pdev)
		ret = -ENOMEM;
		goto fail;
	}
	DBG("eDP probed=%p", edp);
	DBG("eDP probed=%pK", edp);

	edp->pdev = pdev;
	platform_set_drvdata(pdev, edp);
+6 −5
Original line number Diff line number Diff line
@@ -145,7 +145,8 @@ void __iomem *msm_ioremap(struct platform_device *pdev, const char *name,
	}

	if (reglog)
		printk(KERN_DEBUG "IO:region %s %p %08lx\n", dbgname, ptr, size);
		dev_dbg(&pdev->dev, "IO:region %s %pK %08lx\n",
			dbgname, ptr, size);

	return ptr;
}
@@ -158,7 +159,7 @@ void msm_iounmap(struct platform_device *pdev, void __iomem *addr)
void msm_writel(u32 data, void __iomem *addr)
{
	if (reglog)
		printk(KERN_DEBUG "IO:W %p %08x\n", addr, data);
		pr_debug("IO:W %pK %08x\n", addr, data);
	writel(data, addr);
}

@@ -166,7 +167,7 @@ u32 msm_readl(const void __iomem *addr)
{
	u32 val = readl(addr);
	if (reglog)
		printk(KERN_ERR "IO:R %p %08x\n", addr, val);
		pr_err("IO:R %pK %08x\n", addr, val);
	return val;
}

@@ -891,7 +892,7 @@ static int msm_enable_vblank(struct drm_device *dev, unsigned int pipe)
	struct msm_kms *kms = priv->kms;
	if (!kms)
		return -ENXIO;
	DBG("dev=%p, crtc=%u", dev, pipe);
	DBG("dev=%pK, crtc=%u", dev, pipe);
	return vblank_ctrl_queue_work(priv, pipe, true);
}

@@ -901,7 +902,7 @@ static void msm_disable_vblank(struct drm_device *dev, unsigned int pipe)
	struct msm_kms *kms = priv->kms;
	if (!kms)
		return;
	DBG("dev=%p, crtc=%u", dev, pipe);
	DBG("dev=%pK, crtc=%u", dev, pipe);
	vblank_ctrl_queue_work(priv, pipe, false);
}

+4 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 * Copyright (C) 2013 Red Hat
 * Author: Rob Clark <robdclark@gmail.com>
 *
@@ -59,7 +60,7 @@ static void msm_framebuffer_destroy(struct drm_framebuffer *fb)
	msm_fb = to_msm_framebuffer(fb);
	n = drm_format_num_planes(fb->pixel_format);

	DBG("destroy: FB ID: %d (%p)", fb->base.id, fb);
	DBG("destroy: FB ID: %d (%pK)", fb->base.id, fb);

	drm_framebuffer_cleanup(fb);

@@ -239,7 +240,7 @@ struct drm_framebuffer *msm_framebuffer_init(struct drm_device *dev,
	unsigned int hsub, vsub;
	bool is_modified = false;

	DBG("create framebuffer: dev=%p, mode_cmd=%p (%dx%d@%4.4s)",
	DBG("create framebuffer: dev=%pK, mode_cmd=%pK (%dx%d@%4.4s)",
			dev, mode_cmd, mode_cmd->width, mode_cmd->height,
			(char *)&mode_cmd->pixel_format);

@@ -322,7 +323,7 @@ struct drm_framebuffer *msm_framebuffer_init(struct drm_device *dev,
		goto fail;
	}

	DBG("create: FB ID: %d (%p)", fb->base.id, fb);
	DBG("create: FB ID: %d (%pK)", fb->base.id, fb);

	return fb;

Loading