summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2022-03-12 15:39:24 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2022-06-22 15:37:53 +0300
commit38c90c4a1513be12022f2b55a95fa02c53503a24 (patch)
tree1d92a708d8b8e5153ac8b454fc143d4ac963b8fa
parent96972440c4f8c67759675b9ccf24a5dc3fd5b15a (diff)
tools/intel_vbt_decode: Unify panel type handling
Print the panel type(s) the same way in dump_lvds_data() as elsewhere. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-rw-r--r--tools/intel_vbt_decode.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index 77de7506..e16e12d0 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -702,16 +702,10 @@ static void dump_lvds_data(struct context *context,
const uint8_t *timing_data = lfp_data_ptr + dvo_offset;
const struct lvds_lfp_data_entry *lfp_data =
(const struct lvds_lfp_data_entry *)lfp_data_ptr;
- char marker;
if (i != context->panel_type && !context->dump_all_panel_types)
continue;
- if (i == context->panel_type)
- marker = '*';
- else
- marker = ' ';
-
hdisplay = _H_ACTIVE(timing_data);
hsyncstart = hdisplay + _H_SYNC_OFF(timing_data);
hsyncend = hsyncstart + _H_SYNC_WIDTH(timing_data);
@@ -723,8 +717,9 @@ static void dump_lvds_data(struct context *context,
vtotal = vdisplay + _V_BLANK(timing_data);
clock = _PIXEL_CLOCK(timing_data) / 1000;
- printf("%c\tpanel type %02i: %dx%d clock %d\n", marker,
- i, lfp_data->fp_timing.x_res, lfp_data->fp_timing.y_res,
+ printf("\tPanel %d%s\n", i, context->panel_type == i ? " *" : "");
+ printf("\t\t%dx%d clock %d\n",
+ lfp_data->fp_timing.x_res, lfp_data->fp_timing.y_res,
_PIXEL_CLOCK(timing_data));
printf("\t\tinfo:\n");
printf("\t\t LVDS: 0x%08lx\n",