diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-07-03 18:49:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-16 18:05:45 -0700 |
commit | a4232963757e62b3b97bbba07cb92c6d448f6f4b (patch) | |
tree | bf91e17c13821f4463fbae1dc04be0b5e4f9fe7d /block/Kconfig | |
parent | 8153584e3fdf78753bf653d5f583b6ecb86e5e70 (diff) |
driver-core: Move kobj_to_dev from genhd.h to device.h
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 this function can be detected and converted using the
following coccinelle patch:
// <smpl>
@@
expression k;
@@
-container_of(k, struct device, kobj)
+kobj_to_dev(kobj)
// </smpl>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/Kconfig')
0 files changed, 0 insertions, 0 deletions