Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37903
b: refs/heads/master
c: 5206c0d
h: refs/heads/master
i:
  37901: 0cbb142
  37899: 76ec2cc
  37895: 67c79ec
  37887: 5cb9166
v: v3
  • Loading branch information
Dmitry Torokhov committed Sep 14, 2006
1 parent 5c0793a commit b942be7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 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: 9807879bfdc0c2b5106b4b378f5475c6a333d853
refs/heads/master: 5206c0d5ec514733dd098cf658d71327d199c7a0
20 changes: 9 additions & 11 deletions trunk/drivers/input/serio/libps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ MODULE_AUTHOR("Dmitry Torokhov <dtor@mail.ru>");
MODULE_DESCRIPTION("PS/2 driver library");
MODULE_LICENSE("GPL");

EXPORT_SYMBOL(ps2_init);
EXPORT_SYMBOL(ps2_sendbyte);
EXPORT_SYMBOL(ps2_drain);
EXPORT_SYMBOL(ps2_command);
EXPORT_SYMBOL(ps2_schedule_command);
EXPORT_SYMBOL(ps2_handle_ack);
EXPORT_SYMBOL(ps2_handle_response);
EXPORT_SYMBOL(ps2_cmd_aborted);
EXPORT_SYMBOL(ps2_is_keyboard_id);

/* Work structure to schedule execution of a command */
struct ps2work {
struct work_struct work;
Expand Down Expand Up @@ -72,6 +62,7 @@ int ps2_sendbyte(struct ps2dev *ps2dev, unsigned char byte, int timeout)

return -ps2dev->nak;
}
EXPORT_SYMBOL(ps2_sendbyte);

/*
* ps2_drain() waits for device to transmit requested number of bytes
Expand All @@ -97,6 +88,7 @@ void ps2_drain(struct ps2dev *ps2dev, int maxbytes, int timeout)
msecs_to_jiffies(timeout));
mutex_unlock(&ps2dev->cmd_mutex);
}
EXPORT_SYMBOL(ps2_drain);

/*
* ps2_is_keyboard_id() checks received ID byte against the list of
Expand All @@ -116,6 +108,7 @@ int ps2_is_keyboard_id(char id_byte)

return memchr(keyboard_ids, id_byte, sizeof(keyboard_ids)) != NULL;
}
EXPORT_SYMBOL(ps2_is_keyboard_id);

/*
* ps2_adjust_timeout() is called after receiving 1st byte of command
Expand Down Expand Up @@ -251,6 +244,7 @@ int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command)
mutex_unlock(&ps2dev->cmd_mutex);
return rc;
}
EXPORT_SYMBOL(ps2_command);

/*
* ps2_execute_scheduled_command() sends a command, previously scheduled by
Expand Down Expand Up @@ -293,6 +287,7 @@ int ps2_schedule_command(struct ps2dev *ps2dev, unsigned char *param, int comman

return 0;
}
EXPORT_SYMBOL(ps2_schedule_command);

/*
* ps2_init() initializes ps2dev structure
Expand All @@ -304,6 +299,7 @@ void ps2_init(struct ps2dev *ps2dev, struct serio *serio)
init_waitqueue_head(&ps2dev->wait);
ps2dev->serio = serio;
}
EXPORT_SYMBOL(ps2_init);

/*
* ps2_handle_ack() is supposed to be used in interrupt handler
Expand Down Expand Up @@ -349,6 +345,7 @@ int ps2_handle_ack(struct ps2dev *ps2dev, unsigned char data)

return 1;
}
EXPORT_SYMBOL(ps2_handle_ack);

/*
* ps2_handle_response() is supposed to be used in interrupt handler
Expand All @@ -374,6 +371,7 @@ int ps2_handle_response(struct ps2dev *ps2dev, unsigned char data)

return 1;
}
EXPORT_SYMBOL(ps2_handle_response);

void ps2_cmd_aborted(struct ps2dev *ps2dev)
{
Expand All @@ -385,4 +383,4 @@ void ps2_cmd_aborted(struct ps2dev *ps2dev)

ps2dev->flags = 0;
}

EXPORT_SYMBOL(ps2_cmd_aborted);

0 comments on commit b942be7

Please sign in to comment.