[PATCH 1/2] ARM imx53: add pwm devices support
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Tue Mar 1 14:04:20 EST 2011
Hi Fabio,
On Tue, Mar 01, 2011 at 10:47:23AM -0300, Fabio Estevam wrote:
> On Tue, Mar 1, 2011 at 6:38 AM, Jason Chen <b02280 at freescale.com> wrote:
> ...
> > - if (cpu_is_mx27() || cpu_is_mx3() || cpu_is_mx25() || cpu_is_mx51()) {
> > + if (cpu_is_mx27() || cpu_is_mx3() || cpu_is_mx25() || cpu_is_mx51() ||
> > + cpu_is_mx53()) {
>
> Wouldn´t "if (!cpu_is_mx1() && !cpu_is_mx21())" work here and make
> the if statement simpler?
Yes, but less future proof. (Assume the next generation SoC is
different ...)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel
mailing list