Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1230307 > unrolled thread

Re: [PATCH v2] power_supply: max8998: Use devm_power_supply_register

Started bySebastian Reichel <sre@kernel.org>
First post2015-09-22 17:20 +0200
Last post2015-09-22 17:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] power_supply: max8998: Use devm_power_supply_register Sebastian Reichel <sre@kernel.org> - 2015-09-22 17:20 +0200

#1230307 — Re: [PATCH v2] power_supply: max8998: Use devm_power_supply_register

FromSebastian Reichel <sre@kernel.org>
Date2015-09-22 17:20 +0200
SubjectRe: [PATCH v2] power_supply: max8998: Use devm_power_supply_register
Message-ID<qbxwl-DB-13@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,

On Thu, Aug 13, 2015 at 10:24:41AM +0530, Vaishali Thakkar wrote:
> Use managed resource function devm_power_supply_register instead
> of power_supply_register to simplify the error path by allowing
> unregister to happen automatically on error. To be compatible with
> the change, replace various gotos by direct returns and remove
> unneeded label err.
> 
> Also, remove max8998_battery_remove as it is now redundant.

Thanks, queued.

-- Sebastian

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web