Messages in this thread | | | Subject | Re: [v4l-dvb-maintainer] [PATCH] dvb: usb vendor_ids/product_ids are __le16 | From | Harvey Harrison <> | Date | Fri, 14 Nov 2008 11:44:25 -0800 |
| |
On Fri, 2008-11-14 at 14:25 -0500, Devin Heitmueller wrote: > > The alternative is to define the vendor ids as little-endian in the headers > > then you don't need the endian swap in the switch or the case, but that would > > require looking at the other uses first....or gently encourage more people to run sparse ;-) > > > > Harvey > > Harvey, > > If I may offer my opinion, this is not remotely performance-critical > code. That said, I would favor on the side of > maintainability/reliability in this case, and mkrufky's approach seems > to be better on both accounts.
Well, I can see your point, and I don't even know what the chances are of even finding this hardware on a big-endian machine are. But I'd suggest that if you want to improve the maintainability of this code that someone in v4l-land start running sparse regularly and work on getting some of these _trivial_ parts annotated, then any new ones that get introduced will stick out like sore thumbs.
But, not my driver, not my decision. Someone else can implement Michael's suggestion if they want.
Harvey
| |