Skip to contentSkip to conversation

drivers/regulators: Enable the ab8500 for Device Tree

PATCH New Mark Brown 2 participants 2 messages May 14, 2012 1 message not in the archive I2C subsystem host drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CAF2Aj3gHaha9mO4gKf0ReQc-wR7wpomf_9m59AfAUNBr2fLyCQ@mail.gmail.com

Mark Brown

author
#1 lore raw

PATCH 14/15 drivers/regulators: Enable the ab8500 for Device Tree

Quoted 4 lines · Lee Jones

Okay, so can you suggest a way to marry up the constraints found in DT to the remainder of the settings found in the driver without pointlessly applying it all to the DT itself (which is was some of the other drives have done)?

That's what people are using regulator_of_match() for - it's for mapping
the init data in DT array to a handle the driver can use for its
internal data (and vice versa). See how tps65910 is using it for an
example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120514/c5fc4d96/attachment.sig>

#2 lore raw

PATCH 14/15 drivers/regulators: Enable the ab8500 for Device Tree

Quoted 11 lines · Mark Brown
Quoted 4 lines · Lee Jones

Okay, so can you suggest a way to marry up the constraints found in DT to the remainder of the settings found in the driver without pointlessly applying it all to the DT itself (which is was some of the other drives have done)?

That's what people are using regulator_of_match() for - it's for mapping the init data in DT array to a handle the driver can use for its internal data (and vice versa). See how tps65910 is using it for an example.

Ah, I see it now. Looks like that's what I'm after.

I'll sort it out and try to get the new patch off tomorrow.

Thanks Mark.

Signature · 5 lines
Lee Jones
Linaro ST-Ericsson Landing Team Lead
M: +44 77 88 633 515
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog