|
@@ -1065,8 +1065,7 @@ int32_t cam_sensor_driver_cmd(struct cam_sensor_ctrl_t *s_ctrl,
|
|
{
|
|
{
|
|
int rc = 0, pkt_opcode = 0;
|
|
int rc = 0, pkt_opcode = 0;
|
|
struct cam_control *cmd = (struct cam_control *)arg;
|
|
struct cam_control *cmd = (struct cam_control *)arg;
|
|
- struct cam_sensor_power_ctrl_t *power_info =
|
|
|
|
- &s_ctrl->sensordata->power_info;
|
|
|
|
|
|
+ struct cam_sensor_power_ctrl_t *power_info = NULL;
|
|
struct timespec64 ts;
|
|
struct timespec64 ts;
|
|
uint64_t ms, sec, min, hrs;
|
|
uint64_t ms, sec, min, hrs;
|
|
|
|
|
|
@@ -1075,6 +1074,8 @@ int32_t cam_sensor_driver_cmd(struct cam_sensor_ctrl_t *s_ctrl,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ power_info = &s_ctrl->sensordata->power_info;
|
|
|
|
+
|
|
if (cmd->op_code != CAM_SENSOR_PROBE_CMD) {
|
|
if (cmd->op_code != CAM_SENSOR_PROBE_CMD) {
|
|
if (cmd->handle_type != CAM_HANDLE_USER_POINTER) {
|
|
if (cmd->handle_type != CAM_HANDLE_USER_POINTER) {
|
|
CAM_ERR(CAM_SENSOR, "Invalid handle type: %d",
|
|
CAM_ERR(CAM_SENSOR, "Invalid handle type: %d",
|