dyn_hotplug.c: rework a bit for battery

Signed-off-by: SkipXS <sskkiipp@gmail.com>