Fixed prototype of i2c_write for plugins and for i2c-telechips (fix red/yellow).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17277 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c97e503a10
commit
e5319e0e89
2 changed files with 2 additions and 2 deletions
|
@ -555,7 +555,7 @@ struct plugin_api {
|
||||||
int (*mas_codec_readreg)(int reg);
|
int (*mas_codec_readreg)(int reg);
|
||||||
void (*i2c_begin)(void);
|
void (*i2c_begin)(void);
|
||||||
void (*i2c_end)(void);
|
void (*i2c_end)(void);
|
||||||
int (*i2c_write)(int address, unsigned char* buf, int count );
|
int (*i2c_write)(int address, const unsigned char* buf, int count );
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ int i2c_getack(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* device = 8 bit slave address */
|
/* device = 8 bit slave address */
|
||||||
int i2c_write(int device, unsigned char* buf, int count )
|
int i2c_write(int device, const unsigned char* buf, int count )
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
mutex_lock(&i2c_mtx);
|
mutex_lock(&i2c_mtx);
|
||||||
|
|
Loading…
Reference in a new issue