* Re: Using C++ style inheritance for board files
[not found] <66D2DD39-F82B-49BA-89FE-5993B2BF471E@mac.com>
@ 2010-09-15 17:48 ` Tony Lindgren
0 siblings, 0 replies; only message in thread
From: Tony Lindgren @ 2010-09-15 17:48 UTC (permalink / raw)
To: Elvis Dowson; +Cc: Linux OMAP Mailing List
* Elvis Dowson <elvis.dowson@mac.com> [100914 12:58]:
>
> For example, I have a platform that is based on board-overo.c. Instead copy pasting and creating a new board-overo-variant.c, if the core structures were defined as classes, I could potentially inherit from the base overo board definition, and add my own specific modifications.
Uhh, let's leave c++ out of this..
You can already easily share most of the code among boards
by having multiple MACHINE entries in the board-*.c file.
See board-n8x0.c for example.
Then you can spend some effort to create common platform
device init code, see gpmc-*.c and hsmmc.c for examples.
Regards,
Tony
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-15 17:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <66D2DD39-F82B-49BA-89FE-5993B2BF471E@mac.com>
2010-09-15 17:48 ` Using C++ style inheritance for board files Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).