[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1438389906.19345.101.camel@freescale.com>
Date: Fri, 31 Jul 2015 19:45:06 -0500
From: Scott Wood <scottwood@...escale.com>
To: <Yuantian.Tang@...escale.com>
CC: <b07421@...escale.com>, <linuxppc-dev@...ts.ozlabs.org>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
Chenhui Zhao <chenhui.zhao@...escale.com>
Subject: Re: [PATCH v5] powerpc/rcpm: add RCPM driver
On Fri, 2015-06-26 at 15:44 +0800, Yuantian.Tang@...escale.com wrote:
> +static void rcpm_v1_set_ip_power(bool enable, u32 *mask)
> +{
> + if (enable)
> + setbits32(&rcpm_v1_regs->ippdexpcr, *mask);
> + else
> + clrbits32(&rcpm_v1_regs->ippdexpcr, *mask);
> +}
> +
> +static void rcpm_v2_set_ip_power(bool enable, u32 *mask)
> +{
> + if (enable)
> + setbits32(&rcpm_v2_regs->ippdexpcr[0], *mask);
> + else
> + clrbits32(&rcpm_v2_regs->ippdexpcr[0], *mask);
> +}
Why do these take "u32 *mask" instead of "u32 mask"?
-Scott
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists