Q: i2c-mux-pca954x.c : How to get deselect activated via device tree?

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

 



Hi,

there is means to unselect I2C multiplexer pca954x after every transfer.
I've now run into situation where I need this feature: When two multiplexers are on same bus and they host devices with same address.

I could not yet find out from documentation or sources how to get deselect feature enabled:

i2c-mux-pca954x.c:pca954x_probe()
...
			i2c_add_mux_adapter(adap, &client->dev, client,
				force, num, class, pca954x_select_chan,
				(pdata && pdata->modes[num].deselect_on_exit)
					? pca954x_deselect_mux : NULL);
...

How to initialize pdata->modes[num].deselect_on_exit?
Some attribute in device tree should do the trick, shouldn't it?

Has anybody a useful hint?

--
KR
Michael
--
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