Controling a DS1804 Digital Potentiometer

What do you mean by that? You're not thinking of using it as a variable series resistor for the LED, are you?

Digital pots are not (generally) designed for power control - the DS1804 has a maximum current of only 1mA.

The usual approach is to use PWM...