Correct style and indention
This commit is contained in:
@@ -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);
|
||||
|
||||
/* 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;
|
||||
const char *s;
|
||||
@@ -307,7 +308,7 @@ EyeboxOne_init (Driver *drvthis)
|
||||
|
||||
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);
|
||||
@@ -317,7 +318,9 @@ EyeboxOne_init (Driver *drvthis)
|
||||
/********************
|
||||
* 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];
|
||||
|
||||
if(bar > 2 || bar < 1)
|
||||
@@ -334,7 +337,9 @@ static void EyeboxOne_use_bar(int fd, int bar, int level){
|
||||
/********************
|
||||
* 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];
|
||||
int a,b;
|
||||
|
||||
@@ -546,10 +551,6 @@ EyeboxOne_chr (Driver *drvthis, int x, int y, char c)
|
||||
/******************************
|
||||
* Sets the backlight on or off
|
||||
*/
|
||||
|
||||
#define BACKLIGHT_OFF 0
|
||||
#define BACKLIGHT_ON 1
|
||||
|
||||
MODULE_EXPORT void
|
||||
EyeboxOne_backlight (Driver *drvthis, int on)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user