Various files: make function implementations consistent with their declaration in the header file or static if

they're local.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19892 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2009-01-31 23:51:11 +00:00
parent 1929e47245
commit 8e2ff63a7e
7 changed files with 13 additions and 10 deletions

View File

@ -508,7 +508,7 @@ static inline bool scale_v_linear(struct rowset *rset,
#endif /* HAVE_UPSCALER */
#ifndef PLUGIN
void output_row_native(uint32_t row, void * row_in, struct scaler_context *ctx)
static void output_row_native(uint32_t row, void * row_in, struct scaler_context *ctx)
{
int col;
int fb_width = BM_WIDTH(ctx->bm->width,FORMAT_NATIVE,0);

View File

@ -40,7 +40,7 @@ void eeprom_24cxx_init(void)
memset(cached_bitfield, 0, sizeof cached_bitfield);
}
int eeprom_24cxx_read_byte(unsigned int address, char *c)
static int eeprom_24cxx_read_byte(unsigned int address, char *c)
{
int ret;
char byte;
@ -86,7 +86,7 @@ int eeprom_24cxx_read_byte(unsigned int address, char *c)
return 0;
}
int eeprom_24cxx_write_byte(unsigned int address, char c)
static int eeprom_24cxx_write_byte(unsigned int address, char c)
{
int ret;
int count = 0;

View File

@ -31,7 +31,6 @@
#endif
void eeprom_24cxx_init(void);
int eeprom_24cxx_read_byte(unsigned int address, char *c);
int eeprom_24cxx_read(unsigned char address, void *dest, int length);
int eeprom_24cxx_write(unsigned char address, const void *src, int length);

View File

@ -23,6 +23,7 @@
#include "cpu.h"
#include "logf.h"
#include "system.h"
#include "fmradio_i2c.h"
/* cute little functions, atomic read-modify-write */
@ -161,7 +162,7 @@ static unsigned char fmradio_i2c_inb(void)
return byte;
}
int fmradio_i2c_write(int address, const unsigned char* buf, int count)
int fmradio_i2c_write(unsigned char address, const unsigned char* buf, int count)
{
int i,x=0;
@ -188,7 +189,7 @@ int fmradio_i2c_write(int address, const unsigned char* buf, int count)
return x;
}
int fmradio_i2c_read(int address, unsigned char* buf, int count)
int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
{
int i,x=0;

View File

@ -25,6 +25,7 @@
#include "system.h"
#include "power.h"
#include "pcf50606.h"
#include "ata-target.h"
void ata_reset(void)
{

View File

@ -23,6 +23,7 @@
#include "cpu.h"
#include "logf.h"
#include "system.h"
#include "fmradio_i2c.h"
#if (CONFIG_TUNER & TEA5767)
@ -193,7 +194,7 @@ static unsigned char fmradio_i2c_inb(void)
return byte;
}
int fmradio_i2c_write(int address, const unsigned char* buf, int count)
int fmradio_i2c_write(unsigned char address, const unsigned char* buf, int count)
{
int i,x=0;
@ -220,7 +221,7 @@ int fmradio_i2c_write(int address, const unsigned char* buf, int count)
return x;
}
int fmradio_i2c_read(int address, unsigned char* buf, int count)
int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
{
int i,x=0;

View File

@ -23,6 +23,7 @@
#include "cpu.h"
#include "logf.h"
#include "system.h"
#include "fmradio_i2c.h"
#if (CONFIG_TUNER & TEA5767)
@ -150,7 +151,7 @@ static unsigned char fmradio_i2c_inb(void)
return byte;
}
int fmradio_i2c_write(int address, const unsigned char* buf, int count)
int fmradio_i2c_write(unsigned char address, const unsigned char* buf, int count)
{
int i,x=0;
@ -177,7 +178,7 @@ int fmradio_i2c_write(int address, const unsigned char* buf, int count)
return x;
}
int fmradio_i2c_read(int address, unsigned char* buf, int count)
int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
{
int i,x=0;