|
@@ -1,6 +1,6 @@
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
/*
|
|
|
- * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
|
|
|
*/
|
|
|
|
|
|
#include <linux/slab.h>
|
|
@@ -15,8 +15,6 @@
|
|
|
static struct cam_hw_intf *cam_tfe_csid_hw_list[CAM_TFE_CSID_HW_NUM_MAX] = {
|
|
|
0, 0, 0};
|
|
|
|
|
|
-static char csid_dev_name[8];
|
|
|
-
|
|
|
static int cam_tfe_csid_component_bind(struct device *dev,
|
|
|
struct device *master_dev, void *data)
|
|
|
{
|
|
@@ -61,10 +59,6 @@ static int cam_tfe_csid_component_bind(struct device *dev,
|
|
|
goto free_dev;
|
|
|
}
|
|
|
|
|
|
- memset(csid_dev_name, 0, sizeof(csid_dev_name));
|
|
|
- snprintf(csid_dev_name, sizeof(csid_dev_name),
|
|
|
- "csid%1u", csid_dev_idx);
|
|
|
-
|
|
|
csid_hw_intf->hw_idx = csid_dev_idx;
|
|
|
csid_hw_intf->hw_type = CAM_ISP_HW_TYPE_TFE_CSID;
|
|
|
csid_hw_intf->hw_priv = csid_hw_info;
|
|
@@ -72,7 +66,7 @@ static int cam_tfe_csid_component_bind(struct device *dev,
|
|
|
csid_hw_info->core_info = csid_dev;
|
|
|
csid_hw_info->soc_info.pdev = pdev;
|
|
|
csid_hw_info->soc_info.dev = &pdev->dev;
|
|
|
- csid_hw_info->soc_info.dev_name = csid_dev_name;
|
|
|
+ csid_hw_info->soc_info.dev_name = pdev->name;
|
|
|
csid_hw_info->soc_info.index = csid_dev_idx;
|
|
|
|
|
|
csid_hw_data = (struct cam_tfe_csid_hw_info *)match_dev->data;
|