power.c: copy and modify from power_tuna.c of device_samsung_tuna