Re: RFC: Working around dynamic device allocation in i2c. Interaction with other subystems.

From: Mark Brown
Date: Mon Jan 19 2009 - 14:37:23 EST


On Mon, Jan 19, 2009 at 07:18:39PM +0000, Jonathan Cameron wrote:

> 1) Relax the constraints that the token used for device identification
> in subsystems using the regulators approach to a void * and use
> the platform data pointer of an i2c device. Note this requires
> every device which may need a regulator to have platform data.
> Whilst this would work, it is far from ideal.

This would also remove the ability of the APIs using this to use the
struct device for other things like showing what they're doing in sysfs
or use dev_printk.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/