Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354506
b: refs/heads/master
c: 36d2041
h: refs/heads/master
v: v3
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Feb 15, 2013
1 parent d3e7725 commit 720ce04
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a81875dd7a6e31e69ea1f6ed22209acb8f82bf36
refs/heads/master: 36d2041a3d57b9542bb93c94df4f9ebf3a1aee32
31 changes: 16 additions & 15 deletions trunk/drivers/staging/panel/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ struct logical_input {
} u;
};

LIST_HEAD(logical_inputs); /* list of all defined logical inputs */
static LIST_HEAD(logical_inputs); /* list of all defined logical inputs */

/* physical contacts history
* Physical contacts are a 45 bits string of 9 groups of 5 bits each.
Expand Down Expand Up @@ -527,10 +527,10 @@ MODULE_PARM_DESC(lcd_cl_pin,
"# of the // port pin connected to serial LCD 'SCL' "
"signal, with polarity (-17..17)");

static unsigned char *lcd_char_conv;
static const unsigned char *lcd_char_conv;

/* for some LCD drivers (ks0074) we need a charset conversion table. */
static unsigned char lcd_char_conv_ks0074[256] = {
static const unsigned char lcd_char_conv_ks0074[256] = {
/* 0|8 1|9 2|A 3|B 4|C 5|D 6|E 7|F */
/* 0x00 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
/* 0x08 */ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
Expand Down Expand Up @@ -566,7 +566,7 @@ static unsigned char lcd_char_conv_ks0074[256] = {
/* 0xF8 */ 0xac, 0xa6, 0xea, 0xef, 0x7e, 0xeb, 0xb2, 0x79,
};

char old_keypad_profile[][4][9] = {
static const char old_keypad_profile[][4][9] = {
{"S0", "Left\n", "Left\n", ""},
{"S1", "Down\n", "Down\n", ""},
{"S2", "Up\n", "Up\n", ""},
Expand All @@ -577,7 +577,7 @@ char old_keypad_profile[][4][9] = {
};

/* signals, press, repeat, release */
char new_keypad_profile[][4][9] = {
static const char new_keypad_profile[][4][9] = {
{"S0", "Left\n", "Left\n", ""},
{"S1", "Down\n", "Down\n", ""},
{"S2", "Up\n", "Up\n", ""},
Expand All @@ -590,7 +590,7 @@ char new_keypad_profile[][4][9] = {
};

/* signals, press, repeat, release */
char nexcom_keypad_profile[][4][9] = {
static const char nexcom_keypad_profile[][4][9] = {
{"a-p-e-", "Down\n", "Down\n", ""},
{"a-p-E-", "Ret\n", "Ret\n", ""},
{"a-P-E-", "Esc\n", "Esc\n", ""},
Expand All @@ -599,7 +599,7 @@ char nexcom_keypad_profile[][4][9] = {
{"", "", "", ""}
};

static char (*keypad_profile)[4][9] = old_keypad_profile;
static const char (*keypad_profile)[4][9] = old_keypad_profile;

/* FIXME: this should be converted to a bit array containing signals states */
static struct {
Expand Down Expand Up @@ -669,7 +669,7 @@ static void panel_set_bits(void)
* out(dport, in(dport) & d_val[2] | d_val[signal_state])
* out(cport, in(cport) & c_val[2] | c_val[signal_state])
*/
void pin_to_bits(int pin, unsigned char *d_val, unsigned char *c_val)
static void pin_to_bits(int pin, unsigned char *d_val, unsigned char *c_val)
{
int d_bit, c_bit, inv;

Expand Down Expand Up @@ -1372,14 +1372,14 @@ static struct miscdevice lcd_dev = {
};

/* public function usable from the kernel for any purpose */
void panel_lcd_print(char *s)
static void panel_lcd_print(const char *s)
{
if (lcd_enabled && lcd_initialized)
lcd_write(NULL, s, strlen(s), NULL);
}

/* initialize the LCD driver */
void lcd_init(void)
static void lcd_init(void)
{
switch (lcd_type) {
case LCD_TYPE_OLD:
Expand Down Expand Up @@ -1638,7 +1638,7 @@ static struct miscdevice keypad_dev = {
&keypad_fops
};

static void keypad_send_key(char *string, int max_len)
static void keypad_send_key(const char *string, int max_len)
{
if (init_in_progress)
return;
Expand Down Expand Up @@ -1929,7 +1929,7 @@ static void init_scan_timer(void)
* corresponding to out and in bits respectively.
* returns 1 if ok, 0 if error (in which case, nothing is written).
*/
static int input_name2mask(char *name, pmask_t *mask, pmask_t *value,
static int input_name2mask(const char *name, pmask_t *mask, pmask_t *value,
char *imask, char *omask)
{
static char sigtab[10] = "EeSsPpAaBb";
Expand Down Expand Up @@ -1977,8 +1977,9 @@ static int input_name2mask(char *name, pmask_t *mask, pmask_t *value,
* strings <press>, <repeat>, <release> for these respective events.
* Returns the pointer to the new key if ok, NULL if the key could not be bound.
*/
static struct logical_input *panel_bind_key(char *name, char *press,
char *repeat, char *release)
static struct logical_input *panel_bind_key(const char *name, const char *press,
const char *repeat,
const char *release)
{
struct logical_input *key;

Expand Down Expand Up @@ -2178,7 +2179,7 @@ static struct parport_driver panel_driver = {
};

/* init function */
int panel_init(void)
static int panel_init(void)
{
/* for backwards compatibility */
if (keypad_type < 0)
Expand Down

0 comments on commit 720ce04

Please sign in to comment.