Source organization for two drivers sharing coomon code

From: Subbu Seetharaman
Date: Fri Jul 27 2007 - 13:17:46 EST




What is the recommended way for two drivers to share common code ?
Our device has two PCI functions and hence two drivers - NIC and
SCSI driver. The source code for these dirvers will fit under
drivers/net and drivers/scsi. But both drivers share some common
code. If possible, I would like to avoid duplicating the common
code under the two driver directories. Is there any recommened
way to organize such common code ? Thanks.

Subbu

___________________________________________________________________________________
This message, together with any attachment(s), contains confidential and proprietary information of
ServerEngines LLC and is intended only for the designated recipient(s) named above. Any unauthorized
review, printing, retention, copying, disclosure or distribution is strictly prohibited. If you are not the
intended recipient of this message, please immediately advise the sender by reply email message and
delete all copies of this message and any attachment(s). Thank you.

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