[freddy2_es at yahoo.com: a question about i2c]

Frodo Looijaard frodol at dds.nl
Tue Jul 6 20:55:49 CEST 2004

----- Forwarded message from Alfredo Quesada Sánchez <freddy2_es at yahoo.com> -----

From: Alfredo Quesada Sánchez <freddy2_es at yahoo.com>
Subject: a question about i2c
To: frodol at dds.nl
X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a
	on morannon.frodo.local
X-Virus-Status: Clean
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on morannon.frodo.local
X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham 


i've downladed i2c-2.8.7 and i was trying to compile it, but i
receive this error message:

kernel/i2c-philips-par.c: En el nivel principal:
kernel/i2c-philips-par.c:141: error: el elemento inicializador
no es constante
kernel/i2c-philips-par.c:141: error: (near initialization for
kernel/i2c-philips-par.c:150: error: el elemento inicializador
no es constante
kernel/i2c-philips-par.c:150: error: (near initialization for
make: *** [kernel/i2c-philips-par.o] Error 1

at this point we can find the next:

static struct i2c_algo_bit_data bit_lp_data = {
        .setsda         = bit_lp_setsda,
        .setscl         = bit_lp_setscl,
        .getsda         = bit_lp_getsda,
        .getscl         = bit_lp_getscl,
        .udelay         = 80,
        .mdelay         = 80,
        .timeout        = HZ

i'm not sure but i think it should be so:

        .timeout        = HZ,

but this constant is found at <linux/hz.h> and not at the
included header files (at least here in my suse 9.0 distro)

how can i solve this problem?

thx :)


Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad

----- End forwarded message -----

Frodo Looijaard <frodol at dds.nl>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.

More information about the lm-sensors mailing list