summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-01-31 10:02:51 +0100
committerZhang Rui <rui.zhang@intel.com>2013-02-06 07:13:57 +0100
commit9dde8f86085d283042718f88eed017eccad73ab9 (patch)
treebb69ae5343995f8e5231a153dfa36c392a78543b /drivers/thermal
parentThermal: fix a build warning when CONFIG_THERMAL_EMULATION cleared (diff)
downloadlinux-9dde8f86085d283042718f88eed017eccad73ab9.tar.xz
linux-9dde8f86085d283042718f88eed017eccad73ab9.zip
thermal: rcar: use parenthesis on macro
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/rcar_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index 89979ff10e27..47b2b227c91e 100644
--- a/drivers/thermal/rcar_thermal.c
+++ b/drivers/thermal/rcar_thermal.c
@@ -47,7 +47,7 @@ struct rcar_thermal_priv {
};
#define MCELSIUS(temp) ((temp) * 1000)
-#define rcar_zone_to_priv(zone) (zone->devdata)
+#define rcar_zone_to_priv(zone) ((zone)->devdata)
/*
* basic functions