mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amd/display: cleanup of construct and destruct funcs
[Why] Too many construct functions which makes searching difficult, especially on some debuggers. [How] Append all construct and destruct functions with dcn number and object type to make each construct function name unique Signed-off-by: Anthony Koo <Anthony.Koo@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
03527f0d00
commit
d9e32672a1
@@ -111,7 +111,7 @@ static struct atom_encoder_caps_record *get_encoder_cap_record(
|
||||
|
||||
#define DATA_TABLES(table) (bp->master_data_tbl->listOfdatatables.table)
|
||||
|
||||
static void destruct(struct bios_parser *bp)
|
||||
static void bios_parser2_destruct(struct bios_parser *bp)
|
||||
{
|
||||
kfree(bp->base.bios_local_image);
|
||||
kfree(bp->base.integrated_info);
|
||||
@@ -126,7 +126,7 @@ static void firmware_parser_destroy(struct dc_bios **dcb)
|
||||
return;
|
||||
}
|
||||
|
||||
destruct(bp);
|
||||
bios_parser2_destruct(bp);
|
||||
|
||||
kfree(bp);
|
||||
*dcb = NULL;
|
||||
@@ -1925,7 +1925,7 @@ static const struct dc_vbios_funcs vbios_funcs = {
|
||||
.get_board_layout_info = bios_get_board_layout_info,
|
||||
};
|
||||
|
||||
static bool bios_parser_construct(
|
||||
static bool bios_parser2_construct(
|
||||
struct bios_parser *bp,
|
||||
struct bp_init_data *init,
|
||||
enum dce_version dce_version)
|
||||
@@ -2018,7 +2018,7 @@ struct dc_bios *firmware_parser_create(
|
||||
if (!bp)
|
||||
return NULL;
|
||||
|
||||
if (bios_parser_construct(bp, init, dce_version))
|
||||
if (bios_parser2_construct(bp, init, dce_version))
|
||||
return &bp->base;
|
||||
|
||||
kfree(bp);
|
||||
|
||||
Reference in New Issue
Block a user