commit | efc3d04af2f0cbf3d0afeceeadb1d1e09039047d | [log] [tgz] |
---|---|---|
author | Elyes HAOUAS <ehaouas@noos.fr> | Wed Apr 08 12:15:16 2020 +0200 |
committer | Patrick Georgi <pgeorgi@google.com> | Tue Apr 14 09:56:33 2020 +0000 |
tree | e190b81969f9fc31c1cabd9f4c7147be4e0032d3 | |
parent | 4f771fe98b893f03703e9081a29d08459111c2b2 [diff] [blame] |
src/mainboard: Use 'const' to set pnp_devfn_t statically Change-Id: I50ac6914fadc02491df2eccb437eada89fd12b82 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40272 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
diff --git a/src/mainboard/getac/p470/early_init.c b/src/mainboard/getac/p470/early_init.c index cc126dd..04d0c0b 100644 --- a/src/mainboard/getac/p470/early_init.c +++ b/src/mainboard/getac/p470/early_init.c
@@ -66,9 +66,7 @@ void bootblock_mainboard_early_init(void) { - pnp_devfn_t dev; - - dev = PNP_DEV(0x4e, 0x00); + const pnp_devfn_t dev = PNP_DEV(0x4e, 0x00); pnp_enter_ext_func_mode(dev); pnp_write_config(dev, 0x02, 0x0e); // UART power