Em 03-06-2011 10:16, istvan_v@xxxxxxxxxx escreveu: > On 06/03/2011 02:46 PM, Devin Heitmueller wrote: > >> I understand what you're trying to do here, but this is not a good >> approach. We do not want to be littering tuner drivers with >> card-specific if() statements. Also, this is inconsistent with the >> way all other tuner drivers work. >> >> The approach you are attempting may seem easier at first, but it gets >> very difficult to manage over time as the number of boards that use >> the driver increases. >> >> You should have the bridge driver be setting up the cfg structure and >> passing it to the xc4000 driver, just like the xc5000 and xc3028 do. > > Well, for now, I just create patches that reproduce all the changes > I have made to the driver. Of course, these may not always be the > best or most elegant possible solutions, and I expect many will not be > accepted, or further changes/cleanup will be needed later. > > I do not think the number of boards that use this tuner is likely to > increase much in the future, though, since the XC4000 seems to be a > discontinued product (at least it no longer appears anywhere on the > Xceive web site). While the xc4000 is not merged upstream, we may have such hack, but before merging, this issue should be solved. However, it seems better to just do the right thing since the beginning: just add a patch for cx88 adding the xc4000 boards there and filling the config stuff inside cx88 driver. Cheers, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html