This also fixes a bug with the _noop function, because we casted to the wrong struct the dpi value was garbage. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>