Android 15 DP 2 Release 0.6 (AP31.240223.016.A3,tangorpro)
max1720x_battery: check gauge_type before accessing max_m5 functions

This file handles both max77759 and max17201 FG, only max77759 FG allows
accesses to max_m5 related functions, adds gauge type checking to prevent kernel panic

Bug: 318106590
Change-Id: Ia5d5301cb2db4304ace2d3acc2d5d3b2c6c39c25
Signed-off-by: Jenny Ho <hsiufangho@google.com>
1 file changed