[PATCH 01/14] chardev: add helper function to register char devs with a struct device