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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 08 Mar 2017, Petri Latvala <petri.latvala@xxxxxxxxx> 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@xxxxxxxxx>

Reviewed-by: Jani Nikula <jani.nikula@xxxxxxxxx>


> ---
>  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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux