>> * to 1/1000 degree Celsius.
>> */
>> -*temp = temp_res * 1000 / 256;
>> +*temp = (temp_res & 0x) * 1000 / 256;
>
> Perhaps while the extra space before '*' could be dropped at the same time.
Hi Simon, thanks for noticing this. Will do.
Regards
Igor
On Thu, Oct 10, 2019 at 02:01:22PM +, Igor Russkikh wrote:
> Chip temperature is a two byte word, colocated internally with cable
> length data. We do all readouts from HW memory by dwords, thus
> we should clear extra high bytes, otherwise temperature output
> gets weird as soon as we attach a
Chip temperature is a two byte word, colocated internally with cable
length data. We do all readouts from HW memory by dwords, thus
we should clear extra high bytes, otherwise temperature output
gets weird as soon as we attach a cable to the NIC.
Fixes: 8f8940118654 ("net: aquantia: add infrastruc