X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=hw%2Fsmbus_eeprom.c;h=cf54c34c33ddd43f45c0faa562d44d5fc4f3e44a;hb=cd346349b45ef056f138a184f660b8c34c3213cc;hp=699bd541757457bdaa1d6f7ec65cac367c2b478b;hpb=0ff596d02fd9d876a31d038255a6d4f89da9dfed;p=qemu diff --git a/hw/smbus_eeprom.c b/hw/smbus_eeprom.c index 699bd54..cf54c34 100644 --- a/hw/smbus_eeprom.c +++ b/hw/smbus_eeprom.c @@ -1,8 +1,8 @@ /* * QEMU SMBus EEPROM device - * + * * Copyright (c) 2007 Arastra, Inc. - * + * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights @@ -94,7 +94,7 @@ static uint8_t eeprom_read_data(SMBusDevice *dev, uint8_t cmd, int n) void smbus_eeprom_device_init(i2c_bus *bus, uint8_t addr, uint8_t *buf) { SMBusEEPROMDevice *eeprom; - + eeprom = (SMBusEEPROMDevice *)smbus_device_init(bus, addr, sizeof(SMBusEEPROMDevice));