I believe the restriction is on charging devices out of sight (in luggage, seatback pockets etc).

Depends on the airline and jurisdiction.