[PATCH] staging: comedi: add NI USB-6501 initial support

Ian Abbott abbotti at mev.co.uk
Wed Aug 6 09:29:30 UTC 2014


On 2014-08-06 09:49, Luca Ellero wrote:
> A question only:
> apart from renaming file from ni_6501.c to ni_usb6501.c, should I rename
> functions/variables as well? For example:
>
> ni6501_auto_attach -> niusb6501_auto_attach
> ni6501_private -> niusb6501_private

It's okay to abbreviate the prefix, so ni6501, usb6501 or niusb6501 
would all be fine.  The main purpose of the prefix is to avoid name 
clashes with things declared in included header files etc., and to make 
it easier to spot things in symbol tables, Oops messages, etc.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-


More information about the devel mailing list