HomeFreeBSD

Reverse the bit logic of sc_led_modes_mask. Instead of initializing it to

Description

Reverse the bit logic of sc_led_modes_mask. Instead of initializing it to
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.

Details

Provenance
ianAuthored on
Parents
rS348019: Allow the end-user to pass along arguments to cryptotest.py via…
Branches
Unknown
Tags
Unknown