drivers: iio: Adding channels to the simple_dummy module

Bharath Vedartham linux.bhar at gmail.com
Wed Jan 23 12:58:02 EST 2019


On Wed, Jan 23, 2019 at 04:36:05PM +0530, Himanshu Jha wrote:
> On Tue, Jan 22, 2019 at 11:33:18PM +0530, Bharath Vedartham wrote:
> > 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?
> 
> Did you followed the configfs setup as illustrated in the aforementioned
> link ?
> 
> Did the modules got loaded correctly ?
> 
> And if you're doing Task 3, I'd assume that the previous tasks were done
> correctly ?
> 
> > printk is not printing to dmesg. I put printk in the probe function
> 
> Without any logs or diffs, it's hard to predict about where exactly
> you're doing wrong.
> 
> 
> Btw, we do have a IIO mailing list as well:
> linux-iio at vger.kernel.org
> 
> -- 
> Himanshu Jha
> Undergraduate Student
> Department of Electronics & Communication
> Guru Tegh Bahadur Institute of Technology
Thank you for your time. I have started another thread where i have added a
diff. I am really not used to using mutt to add diffs,logs in it etc.
Please bear with me.

Thanks a lot,
Bharath



More information about the Kernelnewbies mailing list