Entropy function for the teleparallel Kaluza-Klein reduction