Tag: a4232963757e62b3b97bbba07cb92c6d448f6f4b

driver-core: Move kobj_to_dev from genhd.h to device.h

Author: Lars-Peter Clausen <lars@metafoo.de> This function is not really specific to the genhd layer and there are various re-implementations or open-coded variants of it all throughout the kernel. To avoid further duplications move the function to a more generic place. While moving also convert it from a macro to a inline function. Potential users of …

Continue reading