[Intel-gfx] [PATCH i-g-t 2/4] tools/intel_vbt_decode: Remove unused code

Jani Nikula jani.nikula at linux.intel.com
Wed Mar 8 15:10:55 UTC 2017


On Wed, 08 Mar 2017, Petri Latvala <petri.latvala at intel.com> wrote:
> efp_conn() and related have been unused since 86a546f6f798
> ("tools/intel_bios_reader: Dump out more information from the child
> device structure")
>
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>

Reviewed-by: Jani Nikula <jani.nikula at intel.com>


> ---
>  tools/intel_vbt_decode.c | 22 ----------------------
>  1 file changed, 22 deletions(-)
>
> diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
> index 301cd1c..2984a11 100644
> --- a/tools/intel_vbt_decode.c
> +++ b/tools/intel_vbt_decode.c
> @@ -372,28 +372,6 @@ static const char *efp_port(uint8_t type)
>  	return "unknown";
>  }
>  
> -static const struct {
> -	unsigned short type;
> -	const char *name;
> -} efp_conn_info[] = {
> -	{ DEVICE_INFO_NONE, "N/A" },
> -	{ DEVICE_INFO_HDMI_CERT, "HDMI certified" },
> -	{ DEVICE_INFO_DP, "DisplayPort" },
> -	{ DEVICE_INFO_DVI, "DVI" },
> -};
> -static const int num_efp_conn_info = sizeof(efp_conn_info) / sizeof(efp_conn_info[0]);
> -
> -static const char *efp_conn(uint8_t type)
> -{
> -	int i;
> -
> -	for (i = 0; i < num_efp_conn_info; i++)
> -		if (efp_conn_info[i].type == type)
> -			return efp_conn_info[i].name;
> -
> -	return "unknown";
> -}
> -
>  static void dump_child_device(struct context *context,
>  			      const struct child_device_config *child)
>  {

-- 
Jani Nikula, Intel Open Source Technology Center


More information about the Intel-gfx mailing list