1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

add card, link and port number to i2c name

This commit is contained in:
Ralph Metzler 2016-05-10 11:59:08 +02:00
parent a8d5d5b50d
commit a456f8d5d9

View File

@ -247,7 +247,9 @@ static int ddb_i2c_add(struct ddb *dev, struct ddb_i2c *i2c,
adap->class = I2C_CLASS_TV_ANALOG; adap->class = I2C_CLASS_TV_ANALOG;
#endif #endif
#endif #endif
strcpy(adap->name, "ddbridge"); /*strcpy(adap->name, "ddbridge");*/
snprintf(adap->name, I2C_NAME_SIZE, "ddbridge_%02x.%x.%x",
dev->nr, i2c->link, i);
adap->algo = &ddb_i2c_algo; adap->algo = &ddb_i2c_algo;
adap->algo_data = (void *)i2c; adap->algo_data = (void *)i2c;
adap->dev.parent = dev->dev; adap->dev.parent = dev->dev;