Polarity reversing cable adapter