Correct style and indention

This commit is contained in:
mmdolze
2009-05-14 05:56:22 +00:00
parent adfe557115
commit 779ede6761
3 changed files with 112 additions and 111 deletions
+9 -8
View File
@@ -105,7 +105,8 @@ static void EyeboxOne_use_bar(int fd, int bar, int level);
static void EyeboxOne_use_led(int fd, int led, int color); static void EyeboxOne_use_led(int fd, int led, int color);
/* Parse one key from the configfile */ /* Parse one key from the configfile */
static char EyeboxOne_parse_keypad_setting (Driver *drvthis, char * keyname, char default_value) static char
EyeboxOne_parse_keypad_setting (Driver *drvthis, char * keyname, char default_value)
{ {
char return_val = 0; char return_val = 0;
const char *s; const char *s;
@@ -307,7 +308,7 @@ EyeboxOne_init (Driver *drvthis)
report(RPT_DEBUG, "%s: init() done", drvthis->name); report(RPT_DEBUG, "%s: init() done", drvthis->name);
return 1; return 0;
} }
#define ValidX(x) if ((x) > p->width) { (x) = p->width; } else (x) = (x) < 1 ? 1 : (x); #define ValidX(x) if ((x) > p->width) { (x) = p->width; } else (x) = (x) < 1 ? 1 : (x);
@@ -317,7 +318,9 @@ EyeboxOne_init (Driver *drvthis)
/******************** /********************
* Use bars * Use bars
*/ */
static void EyeboxOne_use_bar(int fd, int bar, int level){ static void
EyeboxOne_use_bar(int fd, int bar, int level)
{
char buffer[16]; char buffer[16];
if(bar > 2 || bar < 1) if(bar > 2 || bar < 1)
@@ -334,7 +337,9 @@ static void EyeboxOne_use_bar(int fd, int bar, int level){
/******************** /********************
* Use leds * Use leds
*/ */
static void EyeboxOne_use_led(int fd, int led, int color){ static void
EyeboxOne_use_led(int fd, int led, int color)
{
char buffer[16]; char buffer[16];
int a,b; int a,b;
@@ -546,10 +551,6 @@ EyeboxOne_chr (Driver *drvthis, int x, int y, char c)
/****************************** /******************************
* Sets the backlight on or off * Sets the backlight on or off
*/ */
#define BACKLIGHT_OFF 0
#define BACKLIGHT_ON 1
MODULE_EXPORT void MODULE_EXPORT void
EyeboxOne_backlight (Driver *drvthis, int on) EyeboxOne_backlight (Driver *drvthis, int on)
{ {