Small linear power supply with adjustable voltage and current