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

2019-01-20 Thread Wei Yang
On Fri, Jan 18, 2019 at 04:55:41PM +0100, Greg KH wrote: >On Fri, Jan 18, 2019 at 10:34:59AM +0800, 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_dr

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

2019-01-20 Thread Wei Yang
On Fri, Jan 18, 2019 at 11:06:23AM +0100, Rafael J. Wysocki wrote: >On Fri, Jan 18, 2019 at 3:35 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 v2] driver core: move device->knode_class to device_private

2019-01-18 Thread Greg KH
On Fri, Jan 18, 2019 at 10:34:59AM +0800, 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 knod

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

2019-01-18 Thread Rafael J. Wysocki
On Fri, Jan 18, 2019 at 3:35 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 v2] driver core: move device->knode_class to device_private

2019-01-17 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