A control circuit for a control loop of a lighting driver adapted to controllably connect an output of an electronic ballast to an LED light source, the control circuit comprising: a differential amplifier comprising: a first input adapted to receive a sensing signal (Ss) indicative of a current signal output to the LED light source; a second input adapted to receive a reference signal (S R); and an output adapted to output a control signal (Sc), wherein the control signal is an amplification of a difference between the first and second inputs and wherein the control signal is for controlling the connection of the output of the electronic ballast to the LED light source; a biasing circuit connected to at least one of the first and the second inputs of the differential amplifier, wherein the biasing circuit has an adjustable impedance; characterized in that the control circuit further comprises a control circuit input adapted to receive from a detection circuit an identifying signal with identifying information of the electronic ballast, said identifying information identifying a model, type or an identity of the electronic ballast; and a tuning circuit adapted to adjust the impedance of the biasing circuit based on the identifying information identifying the model, type or identity of the ballast so as to tune as least one of a gain crossover frequency, a gain margin, a phase crossover frequency and a phase margin of the control circuit and thereby of the control loop of the lighting driver. a differential amplifier comprising: a first input adapted to receive a sensing signal (Ss) indicative of a current signal output to the LED light source; a second input adapted to receive a reference signal (S R); and an output adapted to output a control signal (Sc), wherein the control signal is an amplification of a difference between the first and second inputs and wherein the control signal is for controlling the connection of the output of the electronic ballast to the LED light source; a first input adapted to receive a sensing signal (Ss) indicative of a current signal output to the LED light source; a second input adapted to receive a reference signal (S R); and an output adapted to output a control signal (Sc), wherein the control signal is an amplification of a difference between the first and second inputs and wherein the control signal is for controlling the connection of the output of the electronic ballast to the LED light source; a biasing circuit connected to at least one of the first and the second inputs of the differential amplifier, wherein the biasing circuit has an adjustable impedance; characterized in that the control circuit further comprises a control circuit input adapted to receive from a detection circuit an identifying signal with identifying information of the electronic ballast, said identifying information identifying a model, type or an identity of the electronic ballast; and a tuning circuit adapted to adjust the impedance of the biasing circuit based on the identifying information identifying the model, type or identity of the ballast so as to tune as least one of a gain crossover frequency, a gain margin, a phase crossover frequency and a phase margin of the control circuit and thereby of the control loop of the lighting driver.