All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
To: Lars-Peter Clausen <lars@metafoo.de>,
	Jonathan Cameron <jic23@kernel.org>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Module get needed for iio_channel_get and friends
Date: Wed, 15 Apr 2015 17:00:16 -0300	[thread overview]
Message-ID: <552EC350.2000506@imgtec.com> (raw)

Jonathan, Lars:

I've noticed that iio_channel_{get, get_all} don't call try_module_get
on the module associated to the indio_dev.

This means that an IIO driver can be removed while having a consumer for
any of its channels.

If each channel can have a completely different indio_dev, this means we
need to increase the refcount of the module on each indio_dev, right?

-- 
Ezequiel

             reply	other threads:[~2015-04-15 20:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-15 20:00 Ezequiel Garcia [this message]
2015-04-20 15:06 ` Module get needed for iio_channel_get and friends Lars-Peter Clausen
2015-04-20 21:06   ` Ezequiel Garcia
2015-04-21  5:52     ` Jonathan Cameron

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=552EC350.2000506@imgtec.com \
    --to=ezequiel.garcia@imgtec.com \
    --cc=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.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.