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

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-nforce2-s4985.c39 static struct i2c_adapter *s4985_adapter; variable in typeref:struct:i2c_adapter
167 s4985_adapter = kzalloc(5 * sizeof(struct i2c_adapter), GFP_KERNEL); nforce2_s4985_init()
168 if (!s4985_adapter) { nforce2_s4985_init()
181 s4985_adapter[0] = *nforce2_smbus; nforce2_s4985_init()
182 s4985_adapter[0].algo = s4985_algo; nforce2_s4985_init()
183 s4985_adapter[0].dev.parent = nforce2_smbus->dev.parent; nforce2_s4985_init()
186 s4985_adapter[i] = *nforce2_smbus; nforce2_s4985_init()
187 snprintf(s4985_adapter[i].name, sizeof(s4985_adapter[i].name), nforce2_s4985_init()
189 s4985_adapter[i].algo = s4985_algo + i; nforce2_s4985_init()
190 s4985_adapter[i].dev.parent = nforce2_smbus->dev.parent; nforce2_s4985_init()
199 error = i2c_add_adapter(s4985_adapter + i); nforce2_s4985_init()
205 i2c_del_adapter(s4985_adapter + i); nforce2_s4985_init()
216 kfree(s4985_adapter); nforce2_s4985_init()
217 s4985_adapter = NULL; nforce2_s4985_init()
227 if (s4985_adapter) { nforce2_s4985_exit()
231 i2c_del_adapter(s4985_adapter+i); nforce2_s4985_exit()
232 kfree(s4985_adapter); nforce2_s4985_exit()
233 s4985_adapter = NULL; nforce2_s4985_exit()

Completed in 99 milliseconds