Subject: Re: [PATCH RFC v2 18/32] dsa: mv88e6xxx: Prepare for turning this into a library module

From: Vivien Didelot <[email-masked]>
Date: Sun, 28 Feb 2016 21:40:56 -0500

Hi Andrew,

Andrew Lunn <[email-masked]> writes:

> Export all the functions so that we can later turn the module into a
> library module.

As I mentioned in the first RFC [1], wouldn't that be preferable to
avoid adding modules and factorize everything into a single one?

The common code would have a single probe function which calls
mv88e6xxx_lookup_name for every model tables until it finds the good
one.

For the rest of the code, a few additional switch family checks should
do the job. What do you think?

[1] https://patchwork.ozlabs.org/patch/560540/

Thanks,

        -v