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

Commit a92d76d2 authored by Patrick Daly's avatar Patrick Daly
Browse files

qcom: msm-clock-controller: Move common definitions to header file



Move common error message formatting macros to a header file.

Change-Id: I08df5548aba83405915a30613d135ef3291e949f
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 362134b1
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -12,10 +12,6 @@
 */

#define pr_fmt(fmt) "msmclock: %s: " fmt, __func__
#define dt_err(np, fmt, ...) \
	pr_err("%s: " fmt, np->name, ##__VA_ARGS__)
#define dt_prop_err(np, str, fmt, ...) \
	dt_err(np, "%s: " fmt, str, ##__VA_ARGS__)

#include <linux/kernel.h>
#include <linux/module.h>
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@
#include <linux/of.h>
#include <linux/platform_device.h>

#define dt_err(np, fmt, ...) \
	pr_err("%s: " fmt, np->name, ##__VA_ARGS__)
#define dt_prop_err(np, str, fmt, ...) \
	dt_err(np, "%s: " fmt, str, ##__VA_ARGS__)

/**
 * struct msmclk_parser
 * @compatible