[i2c] Header files question
Mark M. Hoffman
mhoffman at lightlink.com
Thu Aug 17 13:30:22 CEST 2006
Hi Drasko:
* Drasko Draskovic <drasko.draskovic at gmail.com> [2006-08-04 15:01:25 +0200]:
> I am looking at i2c-s3c2410.c, and I can see it uses different macros and
> constants, like .sda_delay = S3C2410_IICLC_SDA_DELAY5 |
> S3C2410_IICLC_FILTER_ON.
> I wonder where is .h file that defines such constants... In lines at he
> begining of the file, I can see
>
> #include <asm/arch/regs-gpio.h>
> #include <asm/arch/regs-iic.h>
> #include <asm/arch/iic.h>
>
> But there are no such files/dirs in my distribution under linux/include, nor
> under linux/asm.
include/asm is a link to an arch-specific directory, e.g. include/asm-i386
'find include -type f | xargs grep -H S3C2410_IICLC_SDA_DELAY5' or somesuch.
> So my question is: where are .h files for .c files in 'busser' kept?
If the contents of the header are private to the module, then the header
belongs in the same directory as the module... '#include "my_header.h"'
If there are exported functions, data, or types, then the header belongs
in the include hierarchy.
Regards,
--
Mark M. Hoffman
mhoffman at lightlink.com
More information about the i2c
mailing list