Attention is currently required from: Nico Huber.

Edward O'Callaghan uploaded patch set #2 to this change.

View Change

ich_descriptor.c: Simplify get_density lookups by deduplicate sw

These two switch statements look up the same thing with only the
return type as different. Therefore deduce out the density encoding
lookup from the use-case logic.

TEST=`flashrom -p internal --flash-name` on Intel Kaby Lake U w/ iHDCP2.2 Prem.

Change-Id: Ieb4e9f19f4f06becd344fe08829dabe20c3c8de0
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
---
M ich_descriptors.c
1 file changed, 50 insertions(+), 80 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/21/63321/2

To view, visit change 63321. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ieb4e9f19f4f06becd344fe08829dabe20c3c8de0
Gerrit-Change-Number: 63321
Gerrit-PatchSet: 2
Gerrit-Owner: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Attention: Nico Huber <nico.h@gmx.de>
Gerrit-MessageType: newpatchset