Re: [Patch] MPC Adapter: read class attribute from device tree

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

 



On Mon, 27 Apr 2009 12:17:58 +0200, Jean Delvare wrote:
> On Fri, 24 Apr 2009 11:38:04 -0400, Jon Smirl wrote:
> > Jean, is it still possible to instantiate i2c devices from the module
> > command line?
> 
> It is still possible if the driver implements the .detect() callback
> (even without any address being probed by default) and uses one of the
> I2C_CLIENT_INSMOD* macros. However, these macros are planned for
> removal. Their replacement is the sysfs entries I have been discussing
> with Michael in the past few weeks and for which he sent a patch for me
> to review. This is still on my todo list, but I am very busy these
> days :(

For the record, it finally happened. I posted a patch doing this on
the linux-i2c list on May 4th, which can be temporarily seen at:
ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-i2c/i2c-sysfs-interface-to-instantiate-devices.patch

It will be merged in 2.6.31. Potential users are invited to give it a
try and comment by then. Hopefully we can then deprecate the ugly
I2C_CLIENT_INSMOD* macros, and get rid of them 2 kernels later.

Thanks,
-- 
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux