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:
parent
1929e47245
commit
8e2ff63a7e
7 changed files with 13 additions and 10 deletions
|
@ -508,7 +508,7 @@ static inline bool scale_v_linear(struct rowset *rset,
|
||||||
#endif /* HAVE_UPSCALER */
|
#endif /* HAVE_UPSCALER */
|
||||||
|
|
||||||
#ifndef PLUGIN
|
#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 col;
|
||||||
int fb_width = BM_WIDTH(ctx->bm->width,FORMAT_NATIVE,0);
|
int fb_width = BM_WIDTH(ctx->bm->width,FORMAT_NATIVE,0);
|
||||||
|
|
|
@ -40,7 +40,7 @@ void eeprom_24cxx_init(void)
|
||||||
memset(cached_bitfield, 0, sizeof cached_bitfield);
|
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;
|
int ret;
|
||||||
char byte;
|
char byte;
|
||||||
|
@ -86,7 +86,7 @@ int eeprom_24cxx_read_byte(unsigned int address, char *c)
|
||||||
return 0;
|
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 ret;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void eeprom_24cxx_init(void);
|
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_read(unsigned char address, void *dest, int length);
|
||||||
int eeprom_24cxx_write(unsigned char address, const void *src, int length);
|
int eeprom_24cxx_write(unsigned char address, const void *src, int length);
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "logf.h"
|
#include "logf.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
#include "fmradio_i2c.h"
|
||||||
|
|
||||||
/* cute little functions, atomic read-modify-write */
|
/* cute little functions, atomic read-modify-write */
|
||||||
|
|
||||||
|
@ -161,7 +162,7 @@ static unsigned char fmradio_i2c_inb(void)
|
||||||
return byte;
|
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;
|
int i,x=0;
|
||||||
|
|
||||||
|
@ -188,7 +189,7 @@ int fmradio_i2c_write(int address, const unsigned char* buf, int count)
|
||||||
return x;
|
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;
|
int i,x=0;
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "power.h"
|
#include "power.h"
|
||||||
#include "pcf50606.h"
|
#include "pcf50606.h"
|
||||||
|
#include "ata-target.h"
|
||||||
|
|
||||||
void ata_reset(void)
|
void ata_reset(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "logf.h"
|
#include "logf.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
#include "fmradio_i2c.h"
|
||||||
|
|
||||||
#if (CONFIG_TUNER & TEA5767)
|
#if (CONFIG_TUNER & TEA5767)
|
||||||
|
|
||||||
|
@ -193,7 +194,7 @@ static unsigned char fmradio_i2c_inb(void)
|
||||||
return byte;
|
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;
|
int i,x=0;
|
||||||
|
|
||||||
|
@ -220,7 +221,7 @@ int fmradio_i2c_write(int address, const unsigned char* buf, int count)
|
||||||
return x;
|
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;
|
int i,x=0;
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "logf.h"
|
#include "logf.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
#include "fmradio_i2c.h"
|
||||||
|
|
||||||
#if (CONFIG_TUNER & TEA5767)
|
#if (CONFIG_TUNER & TEA5767)
|
||||||
|
|
||||||
|
@ -150,7 +151,7 @@ static unsigned char fmradio_i2c_inb(void)
|
||||||
return byte;
|
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;
|
int i,x=0;
|
||||||
|
|
||||||
|
@ -177,7 +178,7 @@ int fmradio_i2c_write(int address, const unsigned char* buf, int count)
|
||||||
return x;
|
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;
|
int i,x=0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue