Skip to contentSkip to conversation

drm/amd/display: Remove unused struct i2c_id_config_access

PATCH In review Yuan Can 2 participants 2 messages Sep 27, 2022 – Oct 4, 2022

Subsystems (3)
lore
Share & tools
lore

Yuan Can

author
#0 lore raw

PATCH 1/1 drm/amd/display: Remove unused struct i2c_id_config_access

After commit 5a8132b9f606("drm/amd/display: remove dead dc vbios code"), no one use struct i2c_id_config_access, so remove it.

---
 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +0 -7
index 5d70f9901d13..d380cf98b844 100644
@@ -50,13 +50,6 @@
 #define LAST_RECORD_TYPE 0xff
 #define SMU9_SYSPLL0_ID  0
 
-struct i2c_id_config_access {
-	uint8_t bfI2C_LineMux:4;
-	uint8_t bfHW_EngineID:3;
-	uint8_t bfHW_Capable:1;
-	uint8_t ucAccess;
-};
-
 static enum bp_result get_gpio_i2c_info(struct bios_parser *bp,
 	struct atom_i2c_record *record,
 	struct graphics_object_i2c_info *info);
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Yuan Can

After commit 5a8132b9f606("drm/amd/display: remove dead dc vbios code"), no one use struct i2c_id_config_access, so remove it.

---
  drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 7 -------
  1 file changed, 7 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +0 -0
index 5d70f9901d13..d380cf98b844 100644
@@ -50,13 +50,6 @@
  #define LAST_RECORD_TYPE 0xff
  #define SMU9_SYSPLL0_ID  0
 

drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c line 55

Quoted 10 lines
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +0 -7
-struct i2c_id_config_access {
-	uint8_t bfI2C_LineMux:4;
-	uint8_t bfHW_EngineID:3;
-	uint8_t bfHW_Capable:1;
-	uint8_t ucAccess;
-};
-
  static enum bp_result get_gpio_i2c_info(struct bios_parser *bp,
  	struct atom_i2c_record *record,
  	struct graphics_object_i2c_info *info);

and applied to amd-staging-drm-next.

Thanks
Siqueira