···200200match, so hotplug/coldplug mechanisms will modprobe the driver.201201202202203203+Device Creation (Standard driver model)204204+---------------------------------------205205+206206+If you know for a fact that an I2C device is connected to a given I2C bus,207207+you can instantiate that device by simply filling an i2c_board_info208208+structure with the device address and driver name, and calling209209+i2c_new_device(). This will create the device, then the driver core will210210+take care of finding the right driver and will call its probe() method.211211+If a driver supports different device types, you can specify the type you212212+want using the type field. You can also specify an IRQ and platform data213213+if needed.214214+215215+Sometimes you know that a device is connected to a given I2C bus, but you216216+don't know the exact address it uses. This happens on TV adapters for217217+example, where the same driver supports dozens of slightly different218218+models, and I2C device addresses change from one model to the next. In219219+that case, you can use the i2c_new_probed_device() variant, which is220220+similar to i2c_new_device(), except that it takes an additional list of221221+possible I2C addresses to probe. A device is created for the first222222+responsive address in the list. If you expect more than one device to be223223+present in the address range, simply call i2c_new_probed_device() that224224+many times.225225+226226+The call to i2c_new_device() or i2c_new_probed_device() typically happens227227+in the I2C bus driver. You may want to save the returned i2c_client228228+reference for later use.229229+230230+231231+Device Deletion (Standard driver model)232232+---------------------------------------233233+234234+Each I2C device which has been created using i2c_new_device() or235235+i2c_new_probed_device() can be unregistered by calling236236+i2c_unregister_device(). If you don't call it explicitly, it will be237237+called automatically before the underlying I2C bus itself is removed, as a238238+device can't survive its parent in the device driver model.239239+240240+203241Legacy Driver Binding Model204242---------------------------205243