The plan is to change how the display temperature is retrieved, having the adc_disp_gettemp_work function hard-set display_temp_c to a sane value, say 25c (which also happens to be the default sane value chosen: #define DISP_DEFAULT_TEMP 25).
This will ensure that a comparison for the battery temperature still takes place, while also disabling the constant ADC polls. Whether the display will come out unreadable remains to be seen; so far, the display temperature gets set to either 43 or 75C depending on the kernel and I've yet to see unreadable output on it.
Again, I'm open to any suggestions, minus relegating it to the spare parts bin - not giving up just yet
On kernel recompilation, I used the 5.4.3.2 sources, built the included toolchain, & got as far as the compile stage (using
these instructions). I used the .config from a live 5.4.3.2 kernel, retrieved from /proc/config.gz. However, I'm now stuck at:
These seem to be the files from the statically linked initramfs. Extracting this and the files contained within from the 5.4.3.2 uImage is no problem thanks to
this guide, but I'm not sure how to work it back into the kernel compile stage. The goal is to get a functional kernel compiled, after which I can make the necessary modifications to max77696-adc.c.