This source file includes following definitions.
- spi_eeprom_register
- spi_eeprom_read
1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef __ASM_TXX9_SPI_H
14 #define __ASM_TXX9_SPI_H
15
16 #include <linux/errno.h>
17
18 #ifdef CONFIG_SPI
19 int spi_eeprom_register(int busid, int chipid, int size);
20 int spi_eeprom_read(int busid, int chipid,
21 int address, unsigned char *buf, int len);
22 #else
23 static inline int spi_eeprom_register(int busid, int chipid, int size)
24 {
25 return -ENODEV;
26 }
27 static inline int spi_eeprom_read(int busid, int chipid,
28 int address, unsigned char *buf, int len)
29 {
30 return -ENODEV;
31 }
32 #endif
33
34 #endif