[jedec.c]: Align formatting and const-correctness.

Start re-aligning jedec.c with upstream. Namely:
- Fix header comments and spacing.
- Fix function signatures to use 'const' where appropriate.
- Use PRIxPTR to print pointer addresses in messages.
- Fix getaddrmask to accept flashchip rather than flashctx.

BUG=b:145175339
BRANCH=none
TEST=emerge-(chell|daisy) sys-apps/flashrom still builds.

Change-Id: Id73820d00c5c13dd3fa21174fdd5eb7aaa2d7729
Signed-off-by: Stuart Langley <slangley@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2119780
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
3 files changed