Re: [PATCH] driver core: move device->knode_class to device_private

2019-01-17 Thread Wei Yang
On Thu, Jan 17, 2019 at 10:38:13AM +0100, Rafael J. Wysocki wrote: >On Thu, Jan 17, 2019 at 6:57 AM Wei Yang wrote: >> >> 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, knod

Re: [PATCH] driver core: move device->knode_class to device_private

2019-01-17 Thread Rafael J. Wysocki
On Thu, Jan 17, 2019 at 6:57 AM Wei Yang wrote: > > 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

[PATCH] driver core: move device->knode_class to device_private

2019-01-16 Thread Wei Yang
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 co