[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110416180140.GE25811@opensource.wolfsonmicro.com>
Date: Sat, 16 Apr 2011 19:01:40 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Haojian Zhuang <haojian.zhuang@...vell.com>
Cc: sameo@...ux.intel.com, haojian.zhuang@...il.com,
linux-kernel@...r.kernel.org, Liam Girdwood <lrg@...mlogic.co.uk>
Subject: Re: [PATCH 12/13] regulator: check name in initialization of max8925
On Wed, Apr 13, 2011 at 10:51:03PM +0800, Haojian Zhuang wrote:
> Check name in initialization of max8925 regulator driver.
> + if (!strcmp(ri->desc.name, pdata->constraints.name))
> + break;
This isn't a good change - the whole point of the name in the
constraints is that it allows the user to assign an arbatrary string
which is useful for the board. The driver should never be looking
inside the constraints at all, the core will apply the constraints for
you.
--
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