I have read several times in responses to similar questions that this kind of use is nothing to worry about. However, I have no real technical knowledge, so you may want to look for an authoritative source of information.
I've been using my iPhone on a dock as a digital picture frame, which probably doesn't amount to as many hours as all night every night, but it means I'm not worried about it.