Driver core: change add_uevent_var to use a struct