How to use spi device from another kernel module?

Ran Shalit ranshalit at gmail.com
Tue Dec 6 14:42:01 EST 2016


Hello,

I have spi device which is registered using spi_register_board_info(),
and I would like to get a pointer to this device in some other kernel module.

Is there a simple way to get a pointer to pointer to a device , so
that we can use it from other module ? (something like i2c_get_adapter
for i2c)

Regards,
Ran



More information about the Kernelnewbies mailing list