Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> writes: >> and the upper limit is '63' (value uses 6:0 register bits). > > And this I don't. You can encode numbers from 0 to 127 on 7 bits. yes; you are right (original '64' was correct because sensor allows only dividers of a power-of-two). >> - mt9p031->clk_div = max_t(unsigned int, div, 64); >> + mt9p031->clk_div = min_t(unsigned int, div, 63); Enrico -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html