Message ID | 1488984275-8428-3-git-send-email-petri.latvala@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, 08 Mar 2017, Petri Latvala <petri.latvala@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@intel.com> Reviewed-by: Jani Nikula <jani.nikula@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) > {
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) {
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@intel.com> --- tools/intel_vbt_decode.c | 22 ---------------------- 1 file changed, 22 deletions(-)