]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amd/display: Delete unused functions
authorClay King <clayking@amd.com>
Wed, 30 Jul 2025 14:23:19 +0000 (10:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Aug 2025 20:57:22 +0000 (16:57 -0400)
[WHAT]
Removing unused code

Reviewed-by: Joshua Aberback <joshua.aberback@amd.com>
Signed-off-by: Clay King <clayking@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
drivers/gpu/drm/amd/display/dc/mpc/dcn401/dcn401_mpc.c
drivers/gpu/drm/amd/display/dc/mpc/dcn401/dcn401_mpc.h

index 14f0304e3eb967b2a37c40ff39d35fb3cca648dd..22960ee03dee43e45ce68e52b34ba4eb8dc257a4 100644 (file)
@@ -1069,21 +1069,6 @@ struct mpc_funcs {
        */
        void (*program_lut_mode)(struct mpc *mpc, const enum MCM_LUT_ID id, const enum MCM_LUT_XABLE xable,
                        bool lut_bank_a, int mpcc_id);
-       /**
-       * @program_3dlut_size:
-       *
-       * Program 3D LUT size.
-       *
-       * Parameters:
-       * - [in/out] mpc - MPC context.
-       * - [in] is_17x17x17 - is 3dlut 17x17x17
-       * - [in] mpcc_id
-       *
-       * Return:
-       *
-       * void
-       */
-       void (*program_3dlut_size)(struct mpc *mpc, bool is_17x17x17, int mpcc_id);
 
        /**
         * @mcm:
index f3fb3fe137577b78a85859111be198e0e8f3622c..e1a0308dee57abd94a1a2340210e042eeb634227 100644 (file)
@@ -287,13 +287,6 @@ void mpc401_program_lut_read_write_control(struct mpc *mpc, const enum MCM_LUT_I
        }
 }
 
-void mpc401_program_3dlut_size(struct mpc *mpc, bool is_17x17x17, int mpcc_id)
-{
-       struct dcn401_mpc *mpc401 = TO_DCN401_MPC(mpc);
-
-       REG_UPDATE(MPCC_MCM_3DLUT_MODE[mpcc_id], MPCC_MCM_3DLUT_SIZE, is_17x17x17 ? 0 : 1);
-}
-
 void mpc_program_gamut_remap(
        struct mpc *mpc,
        unsigned int mpcc_id,
@@ -611,7 +604,6 @@ static const struct mpc_funcs dcn401_mpc_funcs = {
        .populate_lut = mpc401_populate_lut,
        .program_lut_read_write_control = mpc401_program_lut_read_write_control,
        .program_lut_mode = mpc401_program_lut_mode,
-       .program_3dlut_size = mpc401_program_3dlut_size,
 };
 
 
index eb0c68d0b0c76569e1f0714b6efd218a7bcfa6bf..fdc42f8ab3ff5688f5f07d9691455090cb45f262 100644 (file)
@@ -221,11 +221,6 @@ void mpc401_program_lut_read_write_control(
                bool lut_bank_a,
                int mpcc_id);
 
-void mpc401_program_3dlut_size(
-               struct mpc *mpc,
-               bool is_17x17x17,
-               int mpcc_id);
-
 void mpc401_set_gamut_remap(
        struct mpc *mpc,
        int mpcc_id,