u32 vt_pix_clk_hz = 0;
u32 frame_rate = 0, max_fps = 0, frame_valid_us = 0;
- BUG_ON(!pll_info_compact);
+ FIMC_BUG_VOID(!pll_info_compact);
/* 1. get pclk value from pll info */
vt_pix_clk_hz = pll_info_compact->pclk;
int ret = 0;
u32 timeout = 0;
- BUG_ON(!cis_data);
+ FIMC_BUG(!cis_data);
#define STREAM_OFF_WAIT_TIME 250
while (timeout < STREAM_OFF_WAIT_TIME) {
setinfo.param = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
if (!cis) {
goto p_err;
}
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis->cis_data);
memset(cis->cis_data, 0, sizeof(cis_shared_data));
cis->rev_flag = false;
u8 data8 = 0;
u16 data16 = 0;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
if (!cis) {
struct fimc_is_cis *cis = NULL;
struct i2c_client *client = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
int ret = 0;
struct fimc_is_cis *cis = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
ret = sensor_2p7sq_cis_group_param_hold_func(subdev, hold);
if (ret < 0)
int ret = 0;
struct fimc_is_cis *cis = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
ret = sensor_cis_set_registers(subdev, sensor_2p7sq_global, sensor_2p7sq_global_size);
int ret = 0;
struct fimc_is_cis *cis = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
if (mode > sensor_2p7sq_max_setfile_num) {
err("invalid mode(%d)!!", mode);
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
dbg_sensor(1, "[MOD:D:%d] %s\n", cis->id, __func__);
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!target_exposure);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!target_exposure);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!min_expo);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!min_expo);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!max_expo);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!max_expo);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!target_duration);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!target_duration);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!target_permile);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!target_permile);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!min_again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!min_again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!max_again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!max_again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!min_dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!min_dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!max_dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!max_dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
struct device *dev;
struct device_node *dnode;
- BUG_ON(!client);
- BUG_ON(!fimc_is_dev);
+ FIMC_BUG(!client);
+ FIMC_BUG(!fimc_is_dev);
core = (struct fimc_is_core *)dev_get_drvdata(fimc_is_dev);
if (!core) {
u32 vt_pix_clk_hz = 0;
u32 frame_rate = 0, max_fps = 0, frame_valid_us = 0;
- BUG_ON(!pll_info_compact);
+ FIMC_BUG_VOID(!pll_info_compact);
/* 1. get pclk value from pll info */
vt_pix_clk_hz = pll_info_compact->pclk;
int ret = 0;
u32 timeout = 0;
- BUG_ON(!cis_data);
+ FIMC_BUG(!cis_data);
#define STREAM_OFF_WAIT_TIME 250
while (timeout < STREAM_OFF_WAIT_TIME) {
setinfo.param = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
if (!cis) {
goto p_err;
}
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis->cis_data);
memset(cis->cis_data, 0, sizeof(cis_shared_data));
cis->rev_flag = false;
u8 data8 = 0;
u16 data16 = 0;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
if (!cis) {
struct fimc_is_cis *cis = NULL;
struct i2c_client *client = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
int ret = 0;
struct fimc_is_cis *cis = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
ret = sensor_2t7sx_cis_group_param_hold_func(subdev, hold);
if (ret < 0)
int ret = 0;
struct fimc_is_cis *cis = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
ret = sensor_cis_set_registers(subdev, sensor_2t7sx_global, sensor_2t7sx_global_size);
int ret = 0;
struct fimc_is_cis *cis = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
if (mode > sensor_2t7sx_max_setfile_num) {
err("invalid mode(%d)!!", mode);
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
dbg_sensor(1, "[MOD:D:%d] %s\n", cis->id, __func__);
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!target_exposure);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!target_exposure);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!min_expo);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!min_expo);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!max_expo);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!max_expo);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!target_duration);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!target_duration);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!target_permile);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!target_permile);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!min_again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!min_again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!max_again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!max_again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!min_dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!min_dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!max_dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!max_dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
struct device *dev;
struct device_node *dnode;
- BUG_ON(!client);
- BUG_ON(!fimc_is_dev);
+ FIMC_BUG(!client);
+ FIMC_BUG(!fimc_is_dev);
core = (struct fimc_is_core *)dev_get_drvdata(fimc_is_dev);
if (!core) {
u32 pll_voc_a = 0, vt_pix_clk_hz = 0;
u32 frame_rate = 0, max_fps = 0, frame_valid_us = 0;
- FIMC_BUG(!pll_info);
+ FIMC_BUG_VOID(!pll_info);
/* 1. mipi data rate calculation (Mbps/Lane) */
/* ToDo: using output Pixel Clock Divider Value */
u32 frame_rate = 0, max_fps = 0, frame_valid_us = 0;
u32 fll = 0, llp = 0;
- BUG_ON(!pll_info_compact);
+ FIMC_BUG_VOID(!pll_info_compact);
/* 1. get pclk value from pll info */
vt_pix_clk_hz = pll_info_compact->pclk;
int ret = 0;
u32 timeout = 0;
- BUG_ON(!cis_data);
+ FIMC_BUG(!cis_data);
#define STREAM_OFF_WAIT_TIME 250
while (timeout < STREAM_OFF_WAIT_TIME) {
setinfo.param = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
if (!cis) {
goto p_err;
}
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis->cis_data);
memset(cis->cis_data, 0, sizeof(cis_shared_data));
cis->rev_flag = false;
u8 data8 = 0;
u16 data16 = 0;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
if (!cis) {
struct fimc_is_cis *cis = NULL;
struct i2c_client *client = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
int ret = 0;
struct fimc_is_cis *cis = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
ret = sensor_rpb_cis_group_param_hold_func(subdev, hold);
if (ret < 0)
int ret = 0, i;
struct fimc_is_cis *cis = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
for (i = 0; i < RPB_SETFILE_GLOBAL_MAX; i++) {
dbg_sensor(0, "[%s] global[%d] setting start ++\n", __func__, i);
int ret = 0;
struct fimc_is_cis *cis = NULL;
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
if (mode > sensor_rpb_max_setfile_num) {
err("invalid mode(%d)!!", mode);
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
dbg_sensor(1, "[MOD:D:%d] %s\n", cis->id, __func__);
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!target_exposure);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!target_exposure);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!min_expo);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!min_expo);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!max_expo);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!max_expo);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!target_duration);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!target_duration);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
+ FIMC_BUG(!subdev);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!target_permile);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!target_permile);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
cis_data = cis->cis_data;
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!min_again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!min_again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!max_again);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!max_again);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
+ FIMC_BUG(!cis);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!min_dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!min_dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
do_gettimeofday(&st);
#endif
- BUG_ON(!subdev);
- BUG_ON(!max_dgain);
+ FIMC_BUG(!subdev);
+ FIMC_BUG(!max_dgain);
cis = (struct fimc_is_cis *)v4l2_get_subdevdata(subdev);
- BUG_ON(!cis);
- BUG_ON(!cis->cis_data);
+ FIMC_BUG(!cis);
+ FIMC_BUG(!cis->cis_data);
client = cis->client;
if (unlikely(!client)) {
struct device *dev;
struct device_node *dnode;
- BUG_ON(!client);
- BUG_ON(!fimc_is_dev);
+ FIMC_BUG(!client);
+ FIMC_BUG(!fimc_is_dev);
core = (struct fimc_is_core *)dev_get_drvdata(fimc_is_dev);
if (!core) {