tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: config issue



On Sat, Oct 11, 2008 at 07:06:57AM -0700, Paul Goyette wrote:
> I'm trying to add an lm_iic (i2c bus) attachment for the lm(4) LM78 temp  
> sensor driver, and have run into a minor obstacle.
>
> I think that the lm's i2c attachment definition properly belongs in  
> dev/i2c/files.i2c, which is include from conf/files fairly early on  
> (line 306).  However, the attachment needs to refer to the lm device,  
> which is defined much further down in conf/files (lines 816 & 817).
>
> I know that I don't understand all the intricacies of the config goop,  
> especially as it relates to non-x86 ports, so I'm rather reluctant to  
> start moving things around in conf/files.
>
> Is there a proper way to have a "forward reference" such that an  
> attachment can be specified prior to the device itself?  Or, can someone  
> more intimate with the config goop suggest a proper re-ordering of  
> things to make the forward reference unnecessary?

Just move the definition earlier in the file.  Ideally we'd separate bus
definitions from attachments (producers vs. consumers), but it really
doesn't matter, as files.i2c is unconditionally included.

-- 
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpIp8VQq5VR0.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index