I checked this in, trunk r5062.
This includes battery temp A/D support for g7x, ixus140_elph130, ixus175_elph180
It appears that the new A/D setup may be digic 6 specific: G7X is the same as SX710 (12 bit, channel 3) while elph180 is like older cameras (10 bit, channel 5).
For G7X, using the battery remote has some peculiarities probably related to the "genuine" battery detection. Using a Canon battery:
* If the temperature terminal only (between + and -) is covered, the camera boots, but isn't detected on PTP, and after switching to shooting mode, it shut down with "charge the battery" even though the battery had enough charge shoot after I uncovered the terminal. (edit: I tried with a fully charged battery and shooting worked OK, but PTP was still non-functional)
* If both the temperature terminal and the fourth terminal are blocked, it's treated like an external power adapter. Works fine, no battery status in the Canon UI.
* If only the fourth pin is blocked, the "non canon battery" message is displayed.
I didn't experiment to see whether the problem is due to the terminal being open circuit, or whether the battery needs to see power on it. It should be possible to work around in either case, but the threshold would need to be adjusted if triggering was done by switching an additional resistor inline with the thermistor.
i have now tested it on my g7x (just the hdmi hot plug related stuff), everything is working.
Thanks for reporting, and all your work on this project.