c2122bd8ae
all-ones then carving out blocks of zeroes where specified values go, init it to all-zeroes, put in ones where values need to be masked, then use it as value &= ~sc_led_modes_mask. In addition to being more idiomatic, this means everything related to FDT data is initialized to zero along with the rest of the softc, and that allows removing some #ifdef FDT sections and wrapping the whole muge_set_leds() function in a single ifdef block. This also deletes the early-out from muge_set_leds() when an eeprom exists. Even if there is an eeprom with led config in it, the fdt data (if present) should override that, because the user is in control of the fdt data. |
||
---|---|---|
.. | ||
if_aue.c | ||
if_auereg.h | ||
if_axe.c | ||
if_axereg.h | ||
if_axge.c | ||
if_axgereg.h | ||
if_cdce.c | ||
if_cdcereg.h | ||
if_cue.c | ||
if_cuereg.h | ||
if_ipheth.c | ||
if_iphethvar.h | ||
if_kue.c | ||
if_kuefw.h | ||
if_kuereg.h | ||
if_mos.c | ||
if_mosreg.h | ||
if_muge.c | ||
if_mugereg.h | ||
if_rue.c | ||
if_ruereg.h | ||
if_smsc.c | ||
if_smscreg.h | ||
if_udav.c | ||
if_udavreg.h | ||
if_ure.c | ||
if_urereg.h | ||
if_urndis.c | ||
if_urndisreg.h | ||
if_usie.c | ||
if_usievar.h | ||
ruephy.c | ||
ruephyreg.h | ||
uhso.c | ||
usb_ethernet.c | ||
usb_ethernet.h |