Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
What are the requirements for the unit argument to make_dev()? Should it be unique? We're always producing the same unit number in seq_addunit() now.
sys/dev/sound/midi/midi.c | ||
---|---|---|
75–76 | Looks like MIDI_DEV_RAW is unused now? |
Comment Actions
I cannot find which commit exactly removed the need for the unit argument, but it is generally no longer needed. We could even get rid of the current values we pass to make_dev(). The man page states that instead of unit, the current API uses the si_drv* fields.
sys/dev/sound/midi/midi.c | ||
---|---|---|
75–76 | Yes. I will remove this as well. |