kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* drivers: iio: Adding channels to the simple_dummy module
@ 2019-01-22 18:03 Bharath Vedartham
  2019-01-23 11:06 ` Himanshu Jha
  0 siblings, 1 reply; 8+ messages in thread
From: Bharath Vedartham @ 2019-01-22 18:03 UTC (permalink / raw)
  To: kernelnewbies

Hey everyone,

I am trying to get started with the IIO subsystem by doing the following tasks:

https://kernelnewbies.org/IIO_tasks

In task 3, which requires us to add 3 channels to the dummy_device, I
have added the structures in the dummy_channels array(which is of type
struct chan_spec), similar to the other channels in the dummy_channels
array.(in file drivers/iio/dummy/iio_simple_dummy.c)

I also added elements to the enum iio_simple_dummy_scan_elements for the
scan_index val.(in iio_simple_dummy.h)

I recompiled the kernel and loaded the modules iio_dummy and
iio_dummy_evgen using modprobe.

is the right approach. I am not able to see any new channels being
added to my /sys/bus/iio/devices/iio:device0/ directory?

printk is not printing to dmesg. I put printk in the probe function

Thank you,
Bharath

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

end of thread, other threads:[~2019-01-26 18:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22 18:03 drivers: iio: Adding channels to the simple_dummy module Bharath Vedartham
2019-01-23 11:06 ` Himanshu Jha
2019-01-23 17:58   ` Bharath Vedartham
2019-01-24 10:51     ` Himanshu Jha
2019-01-25 11:41       ` Bharath Vedartham
2019-01-25 16:24         ` valdis.kletnieks
2019-01-26  6:42           ` Bharath Vedartham
2019-01-26 18:39             ` valdis.kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).