On Thu, Dec 10, 2009 at 6:04 PM, Mike Frysinger <[email protected]> wrote:
> On Thu, Dec 10, 2009 at 04:11, Wolfgang Grandegger wrote:
>> Barry Song wrote:
>>> +#include <linux/module.h>
>>> +#include <linux/init.h>
>>> +#include <linux/kernel.h>
>>> +#include <linux/types.h>
>>
>> I think you don't need "types.h" as the code no longer uses "uint*_t".
>
> linux/types.h declares all types, like u* which this driver still uses
>
>> Well, I'm still not a friend of the following inline functions,
>> especially the *one-liners* which are called just *once*. With the usage
>> of structs they seem even more useless.
>
> seems like it would make more sense to not even use the read/write
> functions either.  just declare the regs as volatile and assign/read
> the struct directly.
volatile will cause check patch warning in fact.

> -mike
>
_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to