Re: [PATCH v3 3/3] pmbus: ltc2978: add regulator support

From: Mark Brown
Date: Wed Sep 24 2014 - 18:33:38 EST


On Wed, Sep 24, 2014 at 02:13:32PM -0700, Guenter Roeck wrote:
> On Wed, Sep 24, 2014 at 03:48:40PM -0500, atull wrote:

> > > regulator.47/name:vout_en0

> > These are just default names, but I think I could make the name better.
> > How about <part #>-<i2c address>-vout<#> such as "ltc2978-5c-vout0"

> Problem with that is that i2c bus numbers are not static, which would
> make it quite difficult to describe the regulator in devicetree data.

> Any idea what other regulators do in such situations ?

What's there is correct (modulo the _en), the names are local to the
chip. If the user actually cares they will be providing the name of the
supply on the board anyway.

Attachment: signature.asc
Description: Digital signature