cm3232.c (c57d5621d2f2dc238f4b9c4d00b2a54187a75445) cm3232.c (119c4fce683a22a2fdbe343e00bc1a20cc1dd11c)
1/*
2 * CM3232 Ambient Light Sensor
3 *
4 * Copyright (C) 2014-2015 Capella Microsystems Inc.
5 * Author: Kevin Tsai <ktsai@capellamicro.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2, as published

--- 403 unchanged lines hidden (view full) ---

412#endif
413
414MODULE_DEVICE_TABLE(i2c, cm3232_id);
415
416static const struct of_device_id cm3232_of_match[] = {
417 {.compatible = "capella,cm3232"},
418 {}
419};
1/*
2 * CM3232 Ambient Light Sensor
3 *
4 * Copyright (C) 2014-2015 Capella Microsystems Inc.
5 * Author: Kevin Tsai <ktsai@capellamicro.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2, as published

--- 403 unchanged lines hidden (view full) ---

412#endif
413
414MODULE_DEVICE_TABLE(i2c, cm3232_id);
415
416static const struct of_device_id cm3232_of_match[] = {
417 {.compatible = "capella,cm3232"},
418 {}
419};
420MODULE_DEVICE_TABLE(of, cm3232_of_match);
420
421static struct i2c_driver cm3232_driver = {
422 .driver = {
423 .name = "cm3232",
421
422static struct i2c_driver cm3232_driver = {
423 .driver = {
424 .name = "cm3232",
424 .owner = THIS_MODULE,
425 .of_match_table = of_match_ptr(cm3232_of_match),
426#ifdef CONFIG_PM_SLEEP
427 .pm = &cm3232_pm_ops,
428#endif
429 },
430 .id_table = cm3232_id,
431 .probe = cm3232_probe,
432 .remove = cm3232_remove,
433};
434
435module_i2c_driver(cm3232_driver);
436
437MODULE_AUTHOR("Kevin Tsai <ktsai@capellamicro.com>");
438MODULE_DESCRIPTION("CM3232 ambient light sensor driver");
439MODULE_LICENSE("GPL");
425 .of_match_table = of_match_ptr(cm3232_of_match),
426#ifdef CONFIG_PM_SLEEP
427 .pm = &cm3232_pm_ops,
428#endif
429 },
430 .id_table = cm3232_id,
431 .probe = cm3232_probe,
432 .remove = cm3232_remove,
433};
434
435module_i2c_driver(cm3232_driver);
436
437MODULE_AUTHOR("Kevin Tsai <ktsai@capellamicro.com>");
438MODULE_DESCRIPTION("CM3232 ambient light sensor driver");
439MODULE_LICENSE("GPL");