All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bharath Vedartham <linux.bhar@gmail.com>
To: Himanshu Jha <himanshujha199640@gmail.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: drivers: iio: Adding channels to the simple_dummy module
Date: Wed, 23 Jan 2019 23:28:02 +0530	[thread overview]
Message-ID: <20190123175801.GA1087@bhar.linux> (raw)
In-Reply-To: <20190123110605.GA18415@himanshu-Vostro-3559>

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@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

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

  reply	other threads:[~2019-01-23 17:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190123175801.GA1087@bhar.linux \
    --to=linux.bhar@gmail.com \
    --cc=himanshujha199640@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.