Re: [PATCH 2/3] staging: brcm80211: making device object accessible from wlc and phy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The 'why' I want to mess with struct device in my driver is that the
alternative is to include cfg80211.h in every brc80211 source file
that does message logging, which is a form of coupling that I think is
ugly.

Why?  What's wrong with that?  That makes total sense.

Not in my view. Usually a driver consists of more than one layer. The lowest layer deals with hardware and does not need to know anything about concepts such as 'struct wiphy'. But alas, when in Rome... I will include cfg80211.h in my lower level code.

Bye, Roland.

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux