/* * Write a list of register settings; ff/ff stops the process. */ static int ov7670_write_array(struct i2c_client *c, struct regval_list *vals) { while (vals->reg_num != 0xff || vals->value != 0xff) { int ret = ov7670_write(c, vals->reg_num, vals->value); if (ret < 0) return ret; vals++; } return 0; }
/* * Stuff that knows about the sensor. */ static void ov7670_reset(struct i2c_client *client) { ov7670_write(client, REG_COM7, COM7_RESET); msleep(1); }