Re: [PATCH v2] thermal: consistently use int for trip temp

From: Wei Ni
Date: Tue Apr 12 2016 - 04:50:56 EST




On 2016å03æ14æ 17:44, Wei Ni wrote:
>
>
> On 2016å03æ09æ 05:09, Eduardo Valentin wrote:
>> On Tue, Mar 08, 2016 at 11:24:39AM +0800, Wei Ni wrote:
>>>
>>>
>>> On 2016å03æ07æ 16:23, Wei Ni wrote:
>>>> There had a build error in previous patch.
>>>> Fixed it in this version.
>>>> Please review it.
>>>
>>> Add CC: linux-pm@xxxxxxxxxxxxxxx
>>>
>
> Hi Rui,
> Will you take this patch?

Rui, could you please take a look this patch?

>
>>>>
>>>> Thanks.
>>>> Wei.
>>>>
>>>> On 2016å03æ03æ 17:33, Wei Ni wrote:
>>>>> The commit 17e8351a7739 consistently use int for temperature,
>>>>> however it missed a few in trip temperature and thermal_core.
>>>>>
>>>>> In current codes, the trip->temperature used "unsigned long"
>>>>> and zone->temperature used"int", if the temperature is negative
>>>>> value, it will get wrong result when compare temperature with
>>>>> trip temperature.
>>>>>
>>>>> This patch can fix it.
>>>>>
>>>>> Signed-off-by: Wei Ni <wni@xxxxxxxxxx>
>>
>> Rui are you collecting this one?
>>
>> Acked-by: Eduardo Valentin <edubezval@xxxxxxxxx>
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pm" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>