gbms: fix the module dependencies

Cleanup module_init() and module_exit() using module_platform_driver() as
appropriate. Pass defines for modules in command line and use
IS_ENABLED() to select/deselect API functions.

Handle lack max_m5_reg_write(), max_m5_reg_read() and of
max_m5_read_actual_input_current_ua() gracefully.

Bug: 160835098
Test: recompile
Signed-off-by: AleX Pelosi <[email protected]>
Change-Id: I8921b475abd5f4b5a094401175238c6b7fcf12cd
14 files changed