summaryrefslogtreecommitdiff
path: root/src/mainboard/kontron/ktqm77
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-04-08 12:15:16 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-04-14 09:56:33 +0000
commitefc3d04af2f0cbf3d0afeceeadb1d1e09039047d (patch)
treee190b81969f9fc31c1cabd9f4c7147be4e0032d3 /src/mainboard/kontron/ktqm77
parent4f771fe98b893f03703e9081a29d08459111c2b2 (diff)
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>
Diffstat (limited to 'src/mainboard/kontron/ktqm77')
-rw-r--r--src/mainboard/kontron/ktqm77/early_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/kontron/ktqm77/early_init.c b/src/mainboard/kontron/ktqm77/early_init.c
index 565106495d..949eab2a4b 100644
--- a/src/mainboard/kontron/ktqm77/early_init.c
+++ b/src/mainboard/kontron/ktqm77/early_init.c
@@ -35,7 +35,7 @@ void bootblock_mainboard_early_init(void)
{
int lvds_3v = 0; /* 0 (5V) or 1 (3V3) */
int dis_bl_inv = 1; /* backlight inversion: 1 = disabled, 0 = enabled */
- pnp_devfn_t dev = PNP_DEV(0x2e, 0x9);
+ const pnp_devfn_t dev = PNP_DEV(0x2e, 0x9);
pnp_enter_conf_state(dev);
pnp_write_config(dev, 0x29, 0x02); /* Pins 119, 120 are GPIO21, 20 */
pnp_write_config(dev, 0x30, 0x03); /* Enable GPIO2+3 */