[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1376027820.695103970@f416.i.mail.ru>
Date: Fri, 09 Aug 2013 09:57:00 +0400
From: Alexander Shiyan <shc_work@...l.ru>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Mark Brown <broonie@...nel.org>,
Wei Ni <wni@...dia.com>, swarren@...dotorg.org,
linux-kernel@...r.kernel.org, lm-sensors@...sensors.org,
khali@...ux-fr.org, MLongnecker@...dia.com,
linux-tegra@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Proposal: I2C device power (Was: hwmon: (lm90) Add power control)
Hi all.
Instead of adding the support of regulators in each device, let's think about
whether it is possible to create a global regulator for any device on the I2C bus.
I see it like this:
We add an extra field in the i2c_board_info structure "power_name" and handle
it in the i2c_device_{probe/remove} functions.
The question remains how to maintain such regulator in the PM functions,
but we can discuss it.
Changes like this, will remove existing regulators from drivers and allows to
use power regulator for any I2C device.
If such idea is good, such changes could be made to other devices (SPI, w1, etc.).
Thanks.
---
Powered by blists - more mailing lists