Re: [PATCH] power/ltc2941-battery-gauge.c: Use the devicetree node name as supply name

2015-07-24 Thread Sebastian Reichel
Hi, On Wed, Jul 01, 2015 at 11:40:53AM +0200, Mike Looijmans wrote: > Make it possible to set the name of the supply from the devicetree. > Like other power supply drivers just use the node name. This makes > the code smaller as well, as it doesn't need to allocate memory to > hold the name and al

[PATCH] power/ltc2941-battery-gauge.c: Use the devicetree node name as supply name

2015-07-01 Thread Mike Looijmans
Make it possible to set the name of the supply from the devicetree. Like other power supply drivers just use the node name. This makes the code smaller as well, as it doesn't need to allocate memory to hold the name and allocate a unique ID. Functionally tested on 4.0 kernel, only compile-tested o