dmi: clean-up dmi helper declarations