In fact, the I2C initialization function in v4l2-i2c-drv.h will include the file #include <media/v4l2-i2c-drv.h> Br>
The file code is very simple, the I2C driver is initialized as follows:
static int __init v4l2_i2c_drv_init(void){ //The v4l2_i2c_data is the structure defined in the ov2655 driver mentioned earlier. v4l2_i2c_driver.driver.name = v4l2_i2c_data.name; v4l2_i2c_driver.command = v4l2_i2c_data.command; v4l2_i2c_driver.probe = v4l2_i2c_data.probe; v4l2_i2c_driver.remove = v4l2_i2c_data.remove; v4l2_i2c_driver.suspend = v4l2_i2c_data.suspend; v4l2_i2c_driver.resume = v4l2_i2c_data.resume; v4l2_i2c_driver.id_table = v4l2_i2c_data.id_table; return i2c_add_driver (& v4l2_i2c_driver);} static void __exit v4l2_i2c_drv_cleanup (void) {i2c_del_driver (& v4l2_i2c_driver);} module_init (v4l2_i2c_drv_init); module_exit (v4l2_i2c_drv_cleanup);
The Linux operating system has been around for 20 years without knowing it. Just 20 years ago, just
Ext2Fsd is a good tool for reading and writing Linux partitions. This software is introduced in the
The reverse proxy can be divided into two types from the transmission: 1: synchronous mode (apache-
According to foreign media reports, Linux does not seem to be fully loved by people. Operating syste
How to add a static route to Linux
CenterOS 64-bit mysql5.5.25 to open remote access function
Rh442-1 use snmp and mrtg to monitor the network traffic of the Linux server
Linux using fdisk tool SSH command line partition and mount using partition tutorial
How to switch apache prefork and worker mode
Linux system how to quickly view the process pid
Linux kernel space and user space information interaction method
Shorewall firewall installation and configuration method under Linux
Low-key literary lizard: remember SUSE Linux 20th Anniversary
How to release disk space in Win8
IIS time format setting problem (ASP.net date format is wrong)
How does Win7 find the file by searching the text contained in the file?
How to back up Windows10 system image
WinXP modify file extension name causes the file to be unavailable. How to solve
How to solve the problem of Windows 10 system clicking shutdown to become automatic restart?
Win10 Mobile preview version 10563 get started: Edge bookmark synchronization and other improvements
Win8 IE browser does not display the underlined link method