From ff7e676c9fedf2b9d5f028b66d601971bd67591d Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 9 Jul 2014 04:12:42 +1000 Subject: superio/fintek/f71869ad: config struct should be const qualified The 'superio_fintek_f71869ad_config' struct packed by devicetree.cb should have its type declared with the 'const' qualifier. Change-Id: Ieb86861ee821e77680cc4d0de202dbd7535b844d Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/6224 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- src/superio/fintek/f71869ad/f71869ad_hwm.c | 2 +- src/superio/fintek/f71869ad/f71869ad_multifunc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/superio') diff --git a/src/superio/fintek/f71869ad/f71869ad_hwm.c b/src/superio/fintek/f71869ad/f71869ad_hwm.c index f048299b2d..0475081193 100644 --- a/src/superio/fintek/f71869ad/f71869ad_hwm.c +++ b/src/superio/fintek/f71869ad/f71869ad_hwm.c @@ -64,7 +64,7 @@ static void pnp_write_index(u16 port, u8 reg, u8 value) /* note: multifunc registers need to be tweaked before here */ void f71869ad_hwm_init(device_t dev) { - struct superio_fintek_f71869ad_config *conf = dev->chip_info; + const struct superio_fintek_f71869ad_config *conf = dev->chip_info; struct resource *res = find_resource(dev, PNP_IDX_IO0); if (!res) { diff --git a/src/superio/fintek/f71869ad/f71869ad_multifunc.c b/src/superio/fintek/f71869ad/f71869ad_multifunc.c index 46c4d2c701..e0182ed8c2 100644 --- a/src/superio/fintek/f71869ad/f71869ad_multifunc.c +++ b/src/superio/fintek/f71869ad/f71869ad_multifunc.c @@ -32,7 +32,7 @@ void f71869ad_multifunc_init(device_t dev) { - struct superio_fintek_f71869ad_config *conf = dev->chip_info; + const struct superio_fintek_f71869ad_config *conf = dev->chip_info; pnp_enter_conf_mode(dev); -- cgit v1.2.3