aboutsummaryrefslogtreecommitdiffstats
path: root/drv_Cwlinux.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-20 10:09:56 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-20 10:09:56 +0000
commit7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df (patch)
treec9fe5fa4426d7334d8486a3a7e59c64a43d2ef9e /drv_Cwlinux.c
parente4626159694ea6774386faa2f0d2fb517de1eb8b (diff)
downloadlcd4linux-7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df.tar.gz
[lcd4linux @ 2004-06-20 10:09:52 by reinelt]
'const'ified the whole source git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@476 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_Cwlinux.c')
-rw-r--r--drv_Cwlinux.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/drv_Cwlinux.c b/drv_Cwlinux.c
index 9d23088..00973bd 100644
--- a/drv_Cwlinux.c
+++ b/drv_Cwlinux.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Cwlinux.c,v 1.16 2004/06/06 06:51:59 reinelt Exp $
+/* $Id: drv_Cwlinux.c,v 1.17 2004/06/20 10:09:54 reinelt Exp $
*
* new style driver for Cwlinux display modules
*
@@ -23,6 +23,10 @@
*
*
* $Log: drv_Cwlinux.c,v $
+ * Revision 1.17 2004/06/20 10:09:54 reinelt
+ *
+ * 'const'ified the whole source
+ *
* Revision 1.16 2004/06/06 06:51:59 reinelt
*
* do not display end splash screen if quiet=1
@@ -159,7 +163,7 @@ static MODEL Models[] = {
// *** hardware dependant functions ***
// ****************************************
-static void drv_CW_write (int row, int col, unsigned char *data, int len)
+static void drv_CW_write (const int row, const int col, const unsigned char *data, const int len)
{
char cmd[6]="\376Gxy\375";
@@ -171,7 +175,7 @@ static void drv_CW_write (int row, int col, unsigned char *data, int len)
}
-static void drv_CW1602_defchar (int ascii, unsigned char *buffer)
+static void drv_CW1602_defchar (const int ascii, const unsigned char *buffer)
{
int i;
char cmd[12]="\376Nn12345678\375";
@@ -186,7 +190,7 @@ static void drv_CW1602_defchar (int ascii, unsigned char *buffer)
}
-static void drv_CW12232_defchar (int ascii, unsigned char *buffer)
+static void drv_CW12232_defchar (const int ascii, const unsigned char *buffer)
{
int i, j;
char cmd[10]="\376Nn123456\375";
@@ -256,7 +260,7 @@ static int drv_CW_brightness (int brightness)
}
-static int drv_CW_start (char *section)
+static int drv_CW_start (const char *section)
{
int i;
char *model;
@@ -323,7 +327,7 @@ static int drv_CW_start (char *section)
// ****************************************
-static void plugin_brightness (RESULT *result, int argc, RESULT *argv[])
+static void plugin_brightness (RESULT *result, const int argc, RESULT *argv[])
{
double brightness;
@@ -370,7 +374,7 @@ int drv_CW_list (void)
// initialize driver & display
-int drv_CW_init (char *section, int quiet)
+int drv_CW_init (const char *section, const int quiet)
{
WIDGET_CLASS wc;
int ret;
@@ -445,7 +449,7 @@ int drv_CW_init (char *section, int quiet)
// close driver & display
-int drv_CW_quit (int quiet) {
+int drv_CW_quit (const int quiet) {
info("%s: shutting down.", Name);
drv_generic_text_quit();