git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
V4L/DVB: gspca - sonixj: Add webcam 0c45:60ce
[safe/jmp/linux-2.6]
/
Documentation
/
auxdisplay
/
cfag12864b-example.c
diff --git
a/Documentation/auxdisplay/cfag12864b-example.c
b/Documentation/auxdisplay/cfag12864b-example.c
index
2caeea5
..
e7823ff
100644
(file)
--- a/
Documentation/auxdisplay/cfag12864b-example.c
+++ b/
Documentation/auxdisplay/cfag12864b-example.c
@@
-62,7
+62,7
@@
unsigned char cfag12864b_buffer[CFAG12864B_SIZE];
* Unable to open: return = -1
* Unable to mmap: return = -2
*/
* Unable to open: return = -1
* Unable to mmap: return = -2
*/
-int cfag12864b_init(char *path)
+
static
int cfag12864b_init(char *path)
{
cfag12864b_fd = open(path, O_RDWR);
if (cfag12864b_fd == -1)
{
cfag12864b_fd = open(path, O_RDWR);
if (cfag12864b_fd == -1)
@@
-81,7
+81,7
@@
int cfag12864b_init(char *path)
/*
* exit a cfag12864b framebuffer device
*/
/*
* exit a cfag12864b framebuffer device
*/
-void cfag12864b_exit(void)
+
static
void cfag12864b_exit(void)
{
munmap(cfag12864b_mem, CFAG12864B_SIZE);
close(cfag12864b_fd);
{
munmap(cfag12864b_mem, CFAG12864B_SIZE);
close(cfag12864b_fd);
@@
-90,7
+90,7
@@
void cfag12864b_exit(void)
/*
* set (x, y) pixel
*/
/*
* set (x, y) pixel
*/
-void cfag12864b_set(unsigned char x, unsigned char y)
+
static
void cfag12864b_set(unsigned char x, unsigned char y)
{
if (CFAG12864B_CHECK(x, y))
cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] |=
{
if (CFAG12864B_CHECK(x, y))
cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] |=
@@
-100,7
+100,7
@@
void cfag12864b_set(unsigned char x, unsigned char y)
/*
* unset (x, y) pixel
*/
/*
* unset (x, y) pixel
*/
-void cfag12864b_unset(unsigned char x, unsigned char y)
+
static
void cfag12864b_unset(unsigned char x, unsigned char y)
{
if (CFAG12864B_CHECK(x, y))
cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] &=
{
if (CFAG12864B_CHECK(x, y))
cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] &=
@@
-113,7
+113,7
@@
void cfag12864b_unset(unsigned char x, unsigned char y)
* Pixel off: return = 0
* Pixel on: return = 1
*/
* Pixel off: return = 0
* Pixel on: return = 1
*/
-unsigned char cfag12864b_isset(unsigned char x, unsigned char y)
+
static
unsigned char cfag12864b_isset(unsigned char x, unsigned char y)
{
if (CFAG12864B_CHECK(x, y))
if (cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] &
{
if (CFAG12864B_CHECK(x, y))
if (cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] &
@@
-126,7
+126,7
@@
unsigned char cfag12864b_isset(unsigned char x, unsigned char y)
/*
* not (x, y) pixel
*/
/*
* not (x, y) pixel
*/
-void cfag12864b_not(unsigned char x, unsigned char y)
+
static
void cfag12864b_not(unsigned char x, unsigned char y)
{
if (cfag12864b_isset(x, y))
cfag12864b_unset(x, y);
{
if (cfag12864b_isset(x, y))
cfag12864b_unset(x, y);
@@
-137,7
+137,7
@@
void cfag12864b_not(unsigned char x, unsigned char y)
/*
* fill (set all pixels)
*/
/*
* fill (set all pixels)
*/
-void cfag12864b_fill(void)
+
static
void cfag12864b_fill(void)
{
unsigned short i;
{
unsigned short i;
@@
-148,7
+148,7
@@
void cfag12864b_fill(void)
/*
* clear (unset all pixels)
*/
/*
* clear (unset all pixels)
*/
-void cfag12864b_clear(void)
+
static
void cfag12864b_clear(void)
{
unsigned short i;
{
unsigned short i;
@@
-162,7
+162,7
@@
void cfag12864b_clear(void)
* Pixel off: src[i] = 0
* Pixel on: src[i] > 0
*/
* Pixel off: src[i] = 0
* Pixel on: src[i] > 0
*/
-void cfag12864b_format(unsigned char * matrix)
+
static
void cfag12864b_format(unsigned char * matrix)
{
unsigned char i, j, n;
{
unsigned char i, j, n;
@@
-182,7
+182,7
@@
void cfag12864b_format(unsigned char * matrix)
/*
* blit buffer to lcd
*/
/*
* blit buffer to lcd
*/
-void cfag12864b_blit(void)
+
static
void cfag12864b_blit(void)
{
memcpy(cfag12864b_mem, cfag12864b_buffer, CFAG12864B_SIZE);
}
{
memcpy(cfag12864b_mem, cfag12864b_buffer, CFAG12864B_SIZE);
}
@@
-194,11
+194,10
@@
void cfag12864b_blit(void)
*/
#include <stdio.h>
*/
#include <stdio.h>
-#include <string.h>
#define EXAMPLES 6
#define EXAMPLES 6
-void example(unsigned char n)
+
static
void example(unsigned char n)
{
unsigned short i, j;
unsigned char matrix[CFAG12864B_WIDTH * CFAG12864B_HEIGHT];
{
unsigned short i, j;
unsigned char matrix[CFAG12864B_WIDTH * CFAG12864B_HEIGHT];