Update rtl_power_mod.c

Split functions into sections that are easier to comprehend.