Commit ca36c1faddb48c478f7f8944b9b900fc72629310
1 parent
3f10462f29
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
CRISv32: Fix declaration mismatch
Drop i2c_init from this header, it was declared non-static here, but static in the C-file. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Showing 1 changed file with 0 additions and 1 deletions Inline Diff
arch/cris/arch-v32/drivers/i2c.h
1 | 1 | ||
2 | #include <linux/init.h> | 2 | #include <linux/init.h> |
3 | 3 | ||
4 | /* High level I2C actions */ | 4 | /* High level I2C actions */ |
5 | int __init i2c_init(void); | ||
6 | int i2c_write(unsigned char theSlave, void *data, size_t nbytes); | 5 | int i2c_write(unsigned char theSlave, void *data, size_t nbytes); |
7 | int i2c_read(unsigned char theSlave, void *data, size_t nbytes); | 6 | int i2c_read(unsigned char theSlave, void *data, size_t nbytes); |
8 | int i2c_writereg(unsigned char theSlave, unsigned char theReg, unsigned char theValue); | 7 | int i2c_writereg(unsigned char theSlave, unsigned char theReg, unsigned char theValue); |
9 | unsigned char i2c_readreg(unsigned char theSlave, unsigned char theReg); | 8 | unsigned char i2c_readreg(unsigned char theSlave, unsigned char theReg); |
10 | 9 | ||
11 | /* Low level I2C */ | 10 | /* Low level I2C */ |
12 | void i2c_start(void); | 11 | void i2c_start(void); |
13 | void i2c_stop(void); | 12 | void i2c_stop(void); |
14 | void i2c_outbyte(unsigned char x); | 13 | void i2c_outbyte(unsigned char x); |
15 | unsigned char i2c_inbyte(void); | 14 | unsigned char i2c_inbyte(void); |
16 | int i2c_getack(void); | 15 | int i2c_getack(void); |
17 | void i2c_sendack(void); | 16 | void i2c_sendack(void); |
18 | 17 |