[PATCH 09/16] staging: comedi: ni_stc.h: the boardinfo 'name' should be first
Ian Abbott
abbotti at mev.co.uk
Mon Jun 23 16:36:18 UTC 2014
On 2014-06-20 19:10, H Hartley Sweeten wrote:
> The comedi core expects the first member of the boardinfo to be a
> 'const char *' to the board name. The comedi_recognize() function
> uses this to locate the correct boardinfo when doing a legacy
> (*attach) to a comedi driver.
It doesn't matter in this case, as comedi_recognize() just returns NULL
for these drivers (because `num_names` in the struct comedi_driver is
0), but there's no harm putting the board name first for consistency!
--
-=( 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