Home
last modified time | relevance | path

Searched refs:pca_data (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/drivers/i2c/algos/
Di2c-algo-pca.c370 struct i2c_algo_pca_data *pca_data = adap->algo_data; in pca_probe_chip() local
376 pca_outw(pca_data, I2C_PCA_INDPTR, I2C_PCA_IADR); in pca_probe_chip()
377 pca_outw(pca_data, I2C_PCA_IND, 0xAA); in pca_probe_chip()
378 pca_outw(pca_data, I2C_PCA_INDPTR, I2C_PCA_ITO); in pca_probe_chip()
379 pca_outw(pca_data, I2C_PCA_IND, 0x00); in pca_probe_chip()
380 pca_outw(pca_data, I2C_PCA_INDPTR, I2C_PCA_IADR); in pca_probe_chip()
381 if (pca_inw(pca_data, I2C_PCA_IND) == 0xAA) { in pca_probe_chip()
383 pca_data->chip = I2C_PCA_CHIP_9665; in pca_probe_chip()
386 pca_data->chip = I2C_PCA_CHIP_9564; in pca_probe_chip()
388 return pca_data->chip; in pca_probe_chip()
[all …]