[PATCH 0/3] power: max17042_battery: Add DT bindings

From: Karol Lewandowski
Date: Wed Feb 22 2012 - 13:06:16 EST


Hi,

This series of patches adds bindings to max17042_battery driver making
it possible to instantiate it from device tree description.

First, convience patch, simply replaces kzalloc with devm_kzalloc
where possible.

Second, most intrusive patch adds variables orginally found only in
platform data to max17042_chip structure. I decided it to do it that
way rather than allocating new platform data and then populating it
from device tree description.

Last patch adds DT bindings itself.

I would be grateful for any comments and I will be more than happy to
rework this patchset if needed.


Karol Lewandowski (3):
max17042_battery: Use devm_kzalloc() where applicable
max17042_battery: Preserve properties outside of platform data
max17042_battery: Make it possible to instantiate driver from DT

.../bindings/power_supply/max17042_battery.txt | 18 +++++
drivers/power/max17042_battery.c | 77 ++++++++++++++++----
2 files changed, 79 insertions(+), 16 deletions(-)
create mode 100644 Documentation/devicetree/bindings/power_supply/max17042_battery.txt

--
1.7.8.3

--
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/