All of lore.kernel.org
 help / color / mirror / Atom feed
* Controlling ADC SPI devices
@ 2018-03-21 17:46 Anthony Legault Cesta
  2018-03-23 12:32 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony Legault Cesta @ 2018-03-21 17:46 UTC (permalink / raw)
  To: linux-iio

Hello,

my name's Anthony & I need some help with the following:

Reading ADC values from mcp3208 on the spi bus within my custom made 
kernel module.

I'm able to read spi values thru /sys/bus/iio/devices/iio:device0 no 
problems but I need access it from within my drivers.

I've tried using dev_to_iio_dev(dev) but can't seem to claim the *dev 
allocated for the spi device.

How can I get a ref * to the device?

How can I tackle this using iio method?

Thanks i advanced!


Anthony




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-23 12:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-21 17:46 Controlling ADC SPI devices Anthony Legault Cesta
2018-03-23 12:32 ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.