diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-07-09 04:12:42 +1000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-07-15 20:49:03 +0200 |
commit | ff7e676c9fedf2b9d5f028b66d601971bd67591d (patch) | |
tree | 20fc31cc7795086fde05471740866c1aea1b356f /src/superio/fintek/f71869ad | |
parent | 152e517877a5652e8ea4d3d4c86a0c5dcb4a9427 (diff) | |
download | coreboot-ff7e676c9fedf2b9d5f028b66d601971bd67591d.tar.xz |
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 <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6224
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/superio/fintek/f71869ad')
-rw-r--r-- | src/superio/fintek/f71869ad/f71869ad_hwm.c | 2 | ||||
-rw-r--r-- | src/superio/fintek/f71869ad/f71869ad_multifunc.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); |