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>
This commit is contained in:
Edward O'Callaghan 2014-07-09 04:12:42 +10:00
parent 152e517877
commit ff7e676c9f
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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);