Loading drivers/media/platform/msm/camera_v2/common/cam_soc_api.c +3 −3 Original line number Diff line number Diff line /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -208,7 +208,7 @@ int msm_camera_get_clk_info(struct platform_device *pdev, { int rc = 0; if (!pdev || !&pdev->dev || !clk_info || !clk_ptr || !num_clk) if (!pdev || (&pdev->dev == NULL) || !clk_info || !clk_ptr || !num_clk) return -EINVAL; rc = msm_camera_get_clk_info_internal(&pdev->dev, Loading Loading @@ -513,7 +513,7 @@ int msm_camera_put_clk_info(struct platform_device *pdev, { int rc = 0; if (!pdev || !&pdev->dev || !clk_info || !clk_ptr) if (!pdev || (&pdev->dev == NULL) || !clk_info || !clk_ptr) return -EINVAL; rc = msm_camera_put_clk_info_internal(&pdev->dev, Loading drivers/media/platform/msm/camera_v2/msm.c +3 −3 Original line number Diff line number Diff line /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -636,7 +636,7 @@ static inline int __msm_remove_session_cmd_ack_q(void *d1, void *d2) { struct msm_command_ack *cmd_ack = d1; if (!(&cmd_ack->command_q)) if (&cmd_ack->command_q == NULL) return 0; msm_queue_drain(&cmd_ack->command_q, struct msm_command, list); Loading @@ -646,7 +646,7 @@ static inline int __msm_remove_session_cmd_ack_q(void *d1, void *d2) static void msm_remove_session_cmd_ack_q(struct msm_session *session) { if ((!session) || !(&session->command_ack_q)) if ((!session) || (&session->command_ack_q == NULL)) return; mutex_lock(&session->lock); Loading drivers/media/platform/msm/camera_v2/sensor/flash/msm_flash.c +2 −1 Original line number Diff line number Diff line Loading @@ -389,7 +389,8 @@ static int32_t msm_flash_i2c_release( { int32_t rc = 0; if (!(&flash_ctrl->power_info) || !(&flash_ctrl->flash_i2c_client)) { if ((&flash_ctrl->power_info == NULL) || (&flash_ctrl->flash_i2c_client == NULL)) { pr_err("%s:%d failed: %pK %pK\n", __func__, __LINE__, &flash_ctrl->power_info, &flash_ctrl->flash_i2c_client); Loading drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -1350,7 +1350,7 @@ static int msm_cam_sensor_handle_reg_gpio(int seq_val, CDBG("%s: %d GPIO offset: %d, seq_val: %d\n", __func__, __LINE__, gpio_offset, seq_val); if ((gconf->gpio_num_info->valid[gpio_offset] == 1)) { if (gconf->gpio_num_info->valid[gpio_offset] == 1) { gpio_set_value_cansleep( gconf->gpio_num_info->gpio_num [gpio_offset], val); Loading drivers/power/supply/qcom/qg-battery-profile.c +3 −3 Original line number Diff line number Diff line /* Copyright (c) 2018 The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -398,7 +398,7 @@ int lookup_soc_ocv(u32 *soc, u32 ocv_uv, int batt_temp, bool charging) { u8 table_index = charging ? TABLE_SOC_OCV1 : TABLE_SOC_OCV2; if (!the_battery || !the_battery->profile) if (!the_battery || !the_battery->profile_node) return -ENODEV; *soc = interpolate_soc(&the_battery->profile[table_index], Loading @@ -414,7 +414,7 @@ int qg_get_nominal_capacity(u32 *nom_cap_uah, int batt_temp, bool charging) u8 table_index = charging ? TABLE_FCC1 : TABLE_FCC2; u32 fcc_mah; if (!the_battery || !the_battery->profile) if (!the_battery || !the_battery->profile_node) return -ENODEV; fcc_mah = interpolate_single_row_lut( Loading Loading
drivers/media/platform/msm/camera_v2/common/cam_soc_api.c +3 −3 Original line number Diff line number Diff line /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -208,7 +208,7 @@ int msm_camera_get_clk_info(struct platform_device *pdev, { int rc = 0; if (!pdev || !&pdev->dev || !clk_info || !clk_ptr || !num_clk) if (!pdev || (&pdev->dev == NULL) || !clk_info || !clk_ptr || !num_clk) return -EINVAL; rc = msm_camera_get_clk_info_internal(&pdev->dev, Loading Loading @@ -513,7 +513,7 @@ int msm_camera_put_clk_info(struct platform_device *pdev, { int rc = 0; if (!pdev || !&pdev->dev || !clk_info || !clk_ptr) if (!pdev || (&pdev->dev == NULL) || !clk_info || !clk_ptr) return -EINVAL; rc = msm_camera_put_clk_info_internal(&pdev->dev, Loading
drivers/media/platform/msm/camera_v2/msm.c +3 −3 Original line number Diff line number Diff line /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -636,7 +636,7 @@ static inline int __msm_remove_session_cmd_ack_q(void *d1, void *d2) { struct msm_command_ack *cmd_ack = d1; if (!(&cmd_ack->command_q)) if (&cmd_ack->command_q == NULL) return 0; msm_queue_drain(&cmd_ack->command_q, struct msm_command, list); Loading @@ -646,7 +646,7 @@ static inline int __msm_remove_session_cmd_ack_q(void *d1, void *d2) static void msm_remove_session_cmd_ack_q(struct msm_session *session) { if ((!session) || !(&session->command_ack_q)) if ((!session) || (&session->command_ack_q == NULL)) return; mutex_lock(&session->lock); Loading
drivers/media/platform/msm/camera_v2/sensor/flash/msm_flash.c +2 −1 Original line number Diff line number Diff line Loading @@ -389,7 +389,8 @@ static int32_t msm_flash_i2c_release( { int32_t rc = 0; if (!(&flash_ctrl->power_info) || !(&flash_ctrl->flash_i2c_client)) { if ((&flash_ctrl->power_info == NULL) || (&flash_ctrl->flash_i2c_client == NULL)) { pr_err("%s:%d failed: %pK %pK\n", __func__, __LINE__, &flash_ctrl->power_info, &flash_ctrl->flash_i2c_client); Loading
drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_dt_util.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -1350,7 +1350,7 @@ static int msm_cam_sensor_handle_reg_gpio(int seq_val, CDBG("%s: %d GPIO offset: %d, seq_val: %d\n", __func__, __LINE__, gpio_offset, seq_val); if ((gconf->gpio_num_info->valid[gpio_offset] == 1)) { if (gconf->gpio_num_info->valid[gpio_offset] == 1) { gpio_set_value_cansleep( gconf->gpio_num_info->gpio_num [gpio_offset], val); Loading
drivers/power/supply/qcom/qg-battery-profile.c +3 −3 Original line number Diff line number Diff line /* Copyright (c) 2018 The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -398,7 +398,7 @@ int lookup_soc_ocv(u32 *soc, u32 ocv_uv, int batt_temp, bool charging) { u8 table_index = charging ? TABLE_SOC_OCV1 : TABLE_SOC_OCV2; if (!the_battery || !the_battery->profile) if (!the_battery || !the_battery->profile_node) return -ENODEV; *soc = interpolate_soc(&the_battery->profile[table_index], Loading @@ -414,7 +414,7 @@ int qg_get_nominal_capacity(u32 *nom_cap_uah, int batt_temp, bool charging) u8 table_index = charging ? TABLE_FCC1 : TABLE_FCC2; u32 fcc_mah; if (!the_battery || !the_battery->profile) if (!the_battery || !the_battery->profile_node) return -ENODEV; fcc_mah = interpolate_single_row_lut( Loading