On Wed, Jun 20, 2012 at 09:12:51AM -0500, Rob Lee wrote:
Sascha, thanks for the review.
+static struct imx6q_thermal_zone *th_zone; +static void __iomem *ocotp_base;
This is a driver and drivers should generally be multi instance safe.
I don't understand what this comment is referring to. Could you elaborate?
Drivers can only be multi instance safe when all variables are inside a instance specific struct and you pass a pointer to this struct around. What if the i.MX7 has two different ocotp_base and you want to use this driver on both ocotp?
Sascha