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

From: Sebastian Reichel
Date: Fri Jul 24 2015 - 10:54:58 EST


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 allocate a unique ID.

Thanks, queued. It also fixes the missing idr_remove and kfree in
ltc294x_i2c_remove(), btw.

-- Sebastian

Attachment: signature.asc
Description: Digital signature