BigW Consortium Gitlab

Commit f434c411 by Forest Godfrey

Add a few comments and module alias.

parent a50e2be3
......@@ -48,7 +48,7 @@ ai2c_probe(struct i2c_client *client, const struct i2c_device_id *id) {
const arduino_i2c_keyboard_platform_data_t *pdata =
dev_get_platdata(&client->dev);
dev_info(&client->dev, "Arduino I2C Keyboard Probe Starting\n");
dev_info(&client->dev, "Arduino I2C Keyboard Probing Device\n");
if (!pdata) {
dev_err(&client->dev, "No platform present - failing\n");
return -EINVAL;
......@@ -94,8 +94,9 @@ ai2c_remove(struct i2c_client *client) {
return 0;
}
/*
* Module initialization and parameters.
*/
static const struct i2c_device_id ai2c_id[] = {
{ "ai2c-keys", 0 },
{ }
......@@ -126,12 +127,14 @@ ai2c_init(void) {
void
ai2c_shutdown(void) {
printk(KERN_INFO "Arduino I2C Keyboard Shutting Down\n");
i2c_del_driver(&ai2c_driver);
}
module_init(ai2c_init);
module_exit(ai2c_shutdown);
MODULE_ALIAS("arduino_i2c");
MODULE_ALIAS("ai2c-keys");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Forest Godfrey <fgodfrey@bigw.org>");
MODULE_DESCRIPTION("evdev driver for i2c keyboard based on Arduino");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment