If your old incandescent Ryobi flashlight bulb is dead, it's actually possible in most cases to swap it out for an LED.
Abstract: The paper presents the design of a linear dimmable flicker-free LED driver. The driver consists of a preamplifier in series with a linear regulator and forms a drive loop with the LED string ...