Home
last modified time | relevance | path

Searched refs:IMX274_GAIN_CONST (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/media/i2c/
H A Dimx274.c62 #define IMX274_GAIN_CONST (2048) /* for gain formula */ macro
1623 gain_reg = (u32)IMX274_GAIN_CONST - in imx274_set_gain()
1624 (IMX274_GAIN_CONST << IMX274_GAIN_SHIFT) / analog_gain; in imx274_set_gain()
1633 if (IMX274_GAIN_CONST - gain_reg == 0) { in imx274_set_gain()
1639 ctrl->val = (IMX274_GAIN_CONST << IMX274_GAIN_SHIFT) in imx274_set_gain()
1640 / (IMX274_GAIN_CONST - gain_reg) * digital_gain; in imx274_set_gain()