Chargers and cables for electronic devices don't need to be removed from your carry-on when going through airport security. That said, they do clutter the x-ray images a lot, so unless you've packed just a few chargers in there, the TSA agents might ask you to remove them from the bag and place them in a separate bin.