Android 14 QPR3 Beta 2 Release 0.4 (AP21.240216.010,panther,cheetah)
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