All of lore.kernel.org
 help / color / mirror / Atom feed
From: frodol@dds.nl (Frodo Looijaard)
To: lm-sensors@vger.kernel.org
Subject: [freddy2_es@yahoo.com: a question about i2c]
Date: Thu, 19 May 2005 06:25:05 +0000	[thread overview]
Message-ID: <20040706185549.GA1840@frodo.local> (raw)

----- Forwarded message from Alfredo Quesada S?nchez <freddy2_es@yahoo.com> -----

From: Alfredo Quesada S?nchez <freddy2_es@yahoo.com>
Subject: a question about i2c
To: frodol@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ºYES_00 autolearn=ham 
	version=2.63
X-Spam-Level: 

hi

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
`bit_lp_data.timeout')
kernel/i2c-philips-par.c:150: error: el elemento inicializador
no es constante
kernel/i2c-philips-par.c:150: error: (near initialization for
`bit_lp_data2.timeout')
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 :)

regards


		
______________________________________________
Renovamos el Correo Yahoo!: ?100 MB GRATIS!
Nuevos servicios, m?s seguridad
http://correo.yahoo.es

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

-- 
Frodo Looijaard <frodol@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.

                 reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040706185549.GA1840@frodo.local \
    --to=frodol@dds.nl \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.