Discussion:
why struct cdev has not a struct device embedded?
Liang(Bill) Wang
2013-07-14 10:40:27 UTC
Permalink
Hi, all

There is a question that there is struct kobject embed in struct cdev,
and struct device.

Does it is better that a struct device is embedded in a a struct cdev
directly?

Kind Regards
Bill Wang


--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Liang(Bill) Wang
2013-07-14 10:40:10 UTC
Permalink
Hi, all

There is a question that there is struct kobject embed in struct cdev,
and struct device.

Does it is better that a struct device is embedded in a a struct cdev
directly?

Kind Regards
Bill Wang

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Loading...