···22362236}22372237EXPORT_SYMBOL_GPL(i2c_get_device_id);2238223822392239+/**22402240+ * i2c_client_get_device_id - get the driver match table entry of a device22412241+ * @client: the device to query. The device must be bound to a driver22422242+ *22432243+ * Returns a pointer to the matching entry if found, NULL otherwise.22442244+ */22452245+const struct i2c_device_id *i2c_client_get_device_id(const struct i2c_client *client)22462246+{22472247+ const struct i2c_driver *drv = to_i2c_driver(client->dev.driver);22482248+22492249+ return i2c_match_id(drv->id_table, client);22502250+}22512251+EXPORT_SYMBOL_GPL(i2c_client_get_device_id);22522252+22392253/* ----------------------------------------------------22402254 * the i2c address scanning function22412255 * Will not work for 10-bit addresses!