1 comment:
File src/soc/mediatek/mt8183/mt6358.c:
Patch Set #3, Line 782: VSIM2_CALI_POS_60_MV
And line 781-784 looks equivalent to 'vsim2_cali = MAX(0, vsim2_cali - 6);'
Just wanna caution about doing math like that on unsigned types. This would work here, but only due to weird quirks in the integer promotion rules. If vsim2_cali was a u32 it would blow up in your face. Better to just always use 'int' for those kinds of things to be safe.
To view, visit change 32057. To unsubscribe, or for help writing mail filters, visit settings.