i2c-eeprom: Don't close non-open file descriptor
i2c-eeprom: Add missing copyright and license headers