driver core: move device->knode_class to device_private
authorWei Yang <richardw.yang@linux.intel.com>
Fri, 18 Jan 2019 02:34:59 +0000 (10:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 15:55:48 +0000 (16:55 +0100)
commit570d0200123fb4f809aa2f6226e93a458d664d70
tree7da09bb196cd7cd3dcc845f9ed96466fa3a15eeb
parent4bd4e92cfe6d2af77938c2a8ac6635c363dc0ac2
driver core: move device->knode_class to device_private

As the description of struct device_private says, it stores data which
is private to driver core. And it already has similar fields like:
knode_parent, knode_driver, knode_driver and knode_bus. This look it is
more proper to put knode_class together with those fields to make it
private to driver core.

This patch move device->knode_class to device_private to make it comply
with code convention.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/base.h
drivers/base/class.c
drivers/base/core.c
include/linux/device.h