Lines Matching defs:bit_data
84 struct i2c_algo_bit_data *bit_data;
96 bit_data = kzalloc(sizeof(struct i2c_algo_bit_data), GFP_KERNEL);
97 if (!bit_data)
109 bit_data->setsda = i2c_gpio_setsda_val;
112 bit_data->setsda = i2c_gpio_setsda_dir;
117 bit_data->setscl = i2c_gpio_setscl_val;
120 bit_data->setscl = i2c_gpio_setscl_dir;
124 bit_data->getscl = i2c_gpio_getscl;
125 bit_data->getsda = i2c_gpio_getsda;
128 bit_data->udelay = pdata->udelay;
130 bit_data->udelay = 50; /* 10 kHz */
132 bit_data->udelay = 5; /* 100 kHz */
135 bit_data->timeout = pdata->timeout;
137 bit_data->timeout = HZ / 10; /* 100 ms */
139 bit_data->data = pdata;
143 adap->algo_data = bit_data;
171 kfree(bit_data);