Re: [patch] staging: comedi: cleanup comedi_recognize()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 05, 2012 at 12:06:10PM +0200, walter harms wrote:
> Hi all,
> the patch is fine with me but i have a few basic questions:
> 
> Why the (void  *) at all ? it returns a name what is a const char *.
> 

We're really returning a pointer to a private struct, it's just that
the first element on the struct always has to be a pointer to char *.

> A look at the structure also shows that this is a linked list, why
> using offset instead of driv->next ?
> 

It's a different list.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux