Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/dev/i2c
Module Name: src
Committed By: thorpej
Date: Tue Sep 23 01:06:54 UTC 2025
Modified Files:
src/sys/dev/i2c: i2c.c
Log Message:
The I2C device address is sparesely populated, and there are lots
of addresses that have special reserved functions and thus cannot
have devices directly associated with them. As such, it is not really
necessary to keep an array of 1024 device_t pointers (4KB or 8KB,
depending on how LP64 you're feeling at any given moment) per I2C bus
instance (I know, right?).
Instead, associated address <--> device pairings are now kept in a linked
list. Each pairing also knows if the address is reserved for a direct-
config device (i.e. described by the platform device tree) and thus should
not allow indirect-config attempts haphazardly poke around at such addresses
even if no driver instance has currently claimed it.
To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/dev/i2c/i2c.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index