Searched refs:s4985_algo (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-nforce2-s4985.c40 static struct i2c_algorithm *s4985_algo; variable in typeref:struct:i2c_algorithm
172 s4985_algo = kzalloc(5 * sizeof(struct i2c_algorithm), GFP_KERNEL); nforce2_s4985_init()
173 if (!s4985_algo) { nforce2_s4985_init()
179 s4985_algo[0] = *(nforce2_smbus->algo); nforce2_s4985_init()
180 s4985_algo[0].smbus_xfer = nforce2_access_virt0; nforce2_s4985_init()
182 s4985_adapter[0].algo = s4985_algo; nforce2_s4985_init()
185 s4985_algo[i] = *(nforce2_smbus->algo); nforce2_s4985_init()
189 s4985_adapter[i].algo = s4985_algo + i; nforce2_s4985_init()
192 s4985_algo[1].smbus_xfer = nforce2_access_virt1; nforce2_s4985_init()
193 s4985_algo[2].smbus_xfer = nforce2_access_virt2; nforce2_s4985_init()
194 s4985_algo[3].smbus_xfer = nforce2_access_virt3; nforce2_s4985_init()
195 s4985_algo[4].smbus_xfer = nforce2_access_virt4; nforce2_s4985_init()
213 kfree(s4985_algo); nforce2_s4985_init()
214 s4985_algo = NULL; nforce2_s4985_init()
235 kfree(s4985_algo); nforce2_s4985_exit()
236 s4985_algo = NULL; nforce2_s4985_exit()

Completed in 171 milliseconds