isl29003.c (7eef4091a653c243a87e5375c54504cc03bec4d8) | isl29003.c (a64fe2ed76614d37abb6966a67f4f39d10efba3c) |
---|---|
1/* 2 * isl29003.c - Linux kernel module for 3 * Intersil ISL29003 ambient light sensor 4 * 5 * See file:Documentation/misc-devices/isl29003 6 * 7 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de> 8 * --- 441 unchanged lines hidden (view full) --- 450 }, 451 .suspend = isl29003_suspend, 452 .resume = isl29003_resume, 453 .probe = isl29003_probe, 454 .remove = __devexit_p(isl29003_remove), 455 .id_table = isl29003_id, 456}; 457 | 1/* 2 * isl29003.c - Linux kernel module for 3 * Intersil ISL29003 ambient light sensor 4 * 5 * See file:Documentation/misc-devices/isl29003 6 * 7 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de> 8 * --- 441 unchanged lines hidden (view full) --- 450 }, 451 .suspend = isl29003_suspend, 452 .resume = isl29003_resume, 453 .probe = isl29003_probe, 454 .remove = __devexit_p(isl29003_remove), 455 .id_table = isl29003_id, 456}; 457 |
458static int __init isl29003_init(void) 459{ 460 return i2c_add_driver(&isl29003_driver); 461} | 458module_i2c_driver(isl29003_driver); |
462 | 459 |
463static void __exit isl29003_exit(void) 464{ 465 i2c_del_driver(&isl29003_driver); 466} 467 | |
468MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); 469MODULE_DESCRIPTION("ISL29003 ambient light sensor driver"); 470MODULE_LICENSE("GPL v2"); 471MODULE_VERSION(DRIVER_VERSION); | 460MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); 461MODULE_DESCRIPTION("ISL29003 ambient light sensor driver"); 462MODULE_LICENSE("GPL v2"); 463MODULE_VERSION(DRIVER_VERSION); |
472 473module_init(isl29003_init); 474module_exit(isl29003_exit); 475 | |