static u32 sensor_2x5sp_max_setfile_num;
static const u32 *sensor_2x5sp_setfile_throttling;
+static u32 sensor_2x5sp_setfile_throttling_size;
static const struct sensor_pll_info_compact *sensor_2x5sp_pllinfo_throttling;
static void sensor_2x5sp_cis_data_calculation(const struct sensor_pll_info_compact *pll_info_compact, cis_shared_data *cis_data)
I2C_MUTEX_LOCK(cis->i2c_lock);
ret = sensor_cis_set_registers(subdev, sensor_2x5sp_setfile_throttling,
- sizeof(sensor_2x5sp_setfile_throttling) / sizeof(sensor_2x5sp_setfile_throttling[0]));
+ sensor_2x5sp_setfile_throttling_size);
if (ret < 0) {
err("sensor_gm1sp_set_registers fail!!");
goto p_err;
/* throttling setting */
sensor_2x5sp_setfile_throttling = sensor_2x5sp_setfile_B_2880x2160_15fps;
+ sensor_2x5sp_setfile_throttling_size = ARRAY_SIZE(sensor_2x5sp_setfile_B_2880x2160_15fps);
sensor_2x5sp_pllinfo_throttling = &sensor_2x5sp_pllinfo_B_2880x2160_15fps;
} else {
err("%s setfile index out of bound, take default (setfile_A)", __func__);
static u32 sensor_5e9_max_setfile_num;
static const u32 *sensor_5e9_setfile_throttling;
+static u32 sensor_5e9_setfile_throttlingl_size;
static const struct sensor_pll_info *sensor_5e9_pllinfo_throttling;
static void sensor_5e9_cis_data_calculation(const struct sensor_pll_info *pll_info, cis_shared_data *cis_data)
I2C_MUTEX_LOCK(cis->i2c_lock);
ret = sensor_cis_set_registers(subdev, sensor_5e9_setfile_throttling,
- sizeof(sensor_5e9_setfile_throttling) / sizeof(sensor_5e9_setfile_throttling[0]));
+ sensor_5e9_setfile_throttlingl_size);
if (ret < 0) {
err("sensor_gm1sp_set_registers fail!!");
goto p_err;
/* throttling setting */
sensor_5e9_setfile_throttling = sensor_5e9_setfile_C_2592x1944_15fps;
+ sensor_5e9_setfile_throttlingl_size = ARRAY_SIZE(sensor_5e9_setfile_C_2592x1944_15fps);
sensor_5e9_pllinfo_throttling = &sensor_5e9_pllinfo_C_2592x1944_15fps;
} else {
err("%s setfile index out of bound, take default (setfile_A)", __func__);
static u32 sensor_gm1sp_max_setfile_num;
static const u32 *sensor_gm1sp_setfile_throttling;
+static u32 sensor_gm1sp_setfile_throttling_size;
static const struct sensor_pll_info_compact *sensor_gm1sp_pllinfo_throttling;
static void sensor_gm1sp_cis_data_calculation(const struct sensor_pll_info_compact *pll_info_compact, cis_shared_data *cis_data)
I2C_MUTEX_LOCK(cis->i2c_lock);
ret = sensor_cis_set_registers(subdev, sensor_gm1sp_setfile_throttling,
- sizeof(sensor_gm1sp_setfile_throttling) / sizeof(sensor_gm1sp_setfile_throttling[0]));
+ sensor_gm1sp_setfile_throttling_size);
if (ret < 0) {
err("sensor_gm1sp_set_registers fail!!");
goto p_err;
/* throttling setting */
sensor_gm1sp_setfile_throttling = sensor_gm1sp_setfile_B_4000x3000_15fps;
+ sensor_gm1sp_setfile_throttling_size = ARRAY_SIZE(sensor_gm1sp_setfile_B_4000x3000_15fps);
sensor_gm1sp_pllinfo_throttling = &sensor_gm1sp_pllinfo_B_4000x3000_15fps;
} else {
err("%s setfile index out of bound, take default (setfile_A)", __func__);