[PATCH] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-06 Thread Rhyland Klein
Add check to power_supply_read_temp() to only use the power_supply get_property() callback if the use_cnt is > 0. The use_cnt will be incremented at the end of __power_supply_register, so this will block to case where get_property can be called before the supply is fully registered. This fixes the

[PATCH] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-06 Thread Rhyland Klein
Add check to power_supply_read_temp() to only use the power_supply get_property() callback if the use_cnt is > 0. The use_cnt will be incremented at the end of __power_supply_register, so this will block to case where get_property can be called before the supply is fully registered. This fixes the

Re: [PATCH] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-06 Thread Rhyland Klein
On 6/4/2016 9:30 AM, Sebastian Reichel wrote: > * PGP Signed by an unknown key > > Hi Rhyland, > > Thanks for the patch. > > On Fri, Jun 03, 2016 at 04:30:50PM -0400, Rhyland Klein wrote: >> Add check to power_supply_read_temp() to only use the power_supply >> get_property() callback if the

Re: [PATCH] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-06 Thread Rhyland Klein
On 6/4/2016 9:30 AM, Sebastian Reichel wrote: > * PGP Signed by an unknown key > > Hi Rhyland, > > Thanks for the patch. > > On Fri, Jun 03, 2016 at 04:30:50PM -0400, Rhyland Klein wrote: >> Add check to power_supply_read_temp() to only use the power_supply >> get_property() callback if the

Re: [PATCH] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-04 Thread Sebastian Reichel
Hi Rhyland, Thanks for the patch. On Fri, Jun 03, 2016 at 04:30:50PM -0400, Rhyland Klein wrote: > Add check to power_supply_read_temp() to only use the power_supply > get_property() callback if the use_cnt is > 0. The use_cnt will > be incremented at the end of __power_supply_register, so this

Re: [PATCH] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-04 Thread Sebastian Reichel
Hi Rhyland, Thanks for the patch. On Fri, Jun 03, 2016 at 04:30:50PM -0400, Rhyland Klein wrote: > Add check to power_supply_read_temp() to only use the power_supply > get_property() callback if the use_cnt is > 0. The use_cnt will > be incremented at the end of __power_supply_register, so this

[PATCH] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-03 Thread Rhyland Klein
Add check to power_supply_read_temp() to only use the power_supply get_property() callback if the use_cnt is > 0. The use_cnt will be incremented at the end of __power_supply_register, so this will block to case where get_property can be called before the supply is fully registered. This fixes the

[PATCH] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-03 Thread Rhyland Klein
Add check to power_supply_read_temp() to only use the power_supply get_property() callback if the use_cnt is > 0. The use_cnt will be incremented at the end of __power_supply_register, so this will block to case where get_property can be called before the supply is fully registered. This fixes the