Home | History | Annotate | Download | only in i2c

Lines Matching refs:adap

698 static struct i2c *omap24_get_base(struct i2c_adapter *adap)
700 switch (adap->hwadapnr) {
723 printf("wrong hwadapnr: %d\n", adap->hwadapnr);
730 static int omap24_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr,
733 struct i2c *i2c_base = omap24_get_base(adap);
735 return __omap24_i2c_read(i2c_base, adap->waitdelay, chip, addr,
740 static int omap24_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr,
743 struct i2c *i2c_base = omap24_get_base(adap);
745 return __omap24_i2c_write(i2c_base, adap->waitdelay, chip, addr,
749 static uint omap24_i2c_setspeed(struct i2c_adapter *adap, uint speed)
751 struct i2c *i2c_base = omap24_get_base(adap);
754 ret = __omap24_i2c_setspeed(i2c_base, speed, &adap->waitdelay);
760 adap->speed = speed;
765 static void omap24_i2c_init(struct i2c_adapter *adap, int speed, int slaveadd)
767 struct i2c *i2c_base = omap24_get_base(adap);
769 return __omap24_i2c_init(i2c_base, speed, slaveadd, &adap->waitdelay);
772 static int omap24_i2c_probe(struct i2c_adapter *adap, uchar chip)
774 struct i2c *i2c_base = omap24_get_base(adap);
776 return __omap24_i2c_probe(i2c_base, adap->waitdelay, chip);