Re: [PATCH 2/2] regulator: fixed: dt: support for input supply
From: Mark Brown
Date: Tue Jul 03 2012 - 15:17:04 EST
On Mon, Jul 02, 2012 at 03:37:25PM +0530, Laxman Dewangan wrote:
> + if (vin_supply)
> + drvdata->desc.supply_name = "vin";
> +
This isn't great both in terms of it being conditional and the fact that
it's only usable on DT systems as there's no non-DT way to do this. In
general unless we're working around some device tree issue (which should
be *very* rare) we shouldn't be adding any DT only stuff to generic
code, we need to be able to run Linux on non-DT systems.
Attachment:
signature.asc
Description: Digital signature