Side note: It's against FAA regulations to check bags containing lithium ion batteries. Sometimes they remind you at check-in and sometimes they don't. In theory, you could get into trouble for doing it.
Batteries in devices are allowed, because they are assumed to have the necessary protection from things like accidental short circuits. Bare spare batteries are what's prohibited from checked luggage.