Page MenuHomeFreeBSD

acpi_apple: make the device mode a typed enum
ClosedPublic

Authored by seuros on Sat, Oct 17, 1:18 AM.
Referenced Files
F176445400: D60793.id190088.diff
Sun, Oct 18, 10:46 PM
F176400434: D60793.id.diff
Sun, Oct 18, 2:36 PM
F176400430: D60793.id190138.diff
Sun, Oct 18, 2:35 PM
Unknown Object (File)
Sat, Oct 17, 3:57 PM
Unknown Object (File)
Sat, Oct 17, 3:27 PM
Unknown Object (File)
Sat, Oct 17, 2:39 PM
Unknown Object (File)
Sat, Oct 17, 2:20 PM
Unknown Object (File)
Sat, Oct 17, 10:34 AM
Subscribers

Details

Summary

The two mode values were spelled as bit flags, but a device is exactly
one of the two and the dispatch compared the field for equality.

Turned them into an enum, type the softc field with it, and dispatch with
a switch that lists every value

No functional change.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable