Qualcomm's general counsel resigns