18 #include <linux/module.h>
20 #include <linux/i2c.h>
21 #include <linux/videodev2.h>
32 static u8 initial_registers[] =
47 for (i = 0; regs[
i] != 0xFF; i += 2)
53 static int wis_ov7640_probe(
struct i2c_client *client,
64 "wis-ov7640: initializing OV7640 at address %d on %s\n",
67 if (write_regs(client, initial_registers) < 0) {
75 static int wis_ov7640_remove(
struct i2c_client *client)
88 .name =
"WIS OV7640 I2C driver",
90 .probe = wis_ov7640_probe,
91 .remove = wis_ov7640_remove,
92 .id_table = wis_ov7640_id,
95 static int __init wis_ov7640_init(
void)
97 return i2c_add_driver(&wis_ov7640_driver);
100 static void __exit wis_ov7640_cleanup(
void)