linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Make the devm_iio_device_alloc call set iio_dev.dev.parent.
@ 2016-05-04 10:56 Jonathan Cameron
  2016-05-15 17:55 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2016-05-04 10:56 UTC (permalink / raw)
  To: linux-iio@vger.kernel.org

Hi All,

One thing that I discovered via a recent input device review is that
the equivalent of our devm_iio_device_alloc there also sets the
dev.parent.

Should we do the same in IIO?

I'm a bit in too minds as it feels like it is only sort of 'part of the
allocation'.

Still it drops one line from nearly every IIO driver.
Could do the same for dev_iio_trigger_alloc as well I guess for double
savings.

Anyhow, a little cleanup that seemed like a moderately good idea to
me so I thought I'd see what the general view was.

Jonathan

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

end of thread, other threads:[~2016-05-16  6:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-04 10:56 [RFC] Make the devm_iio_device_alloc call set iio_dev.dev.parent Jonathan Cameron
2016-05-15 17:55 ` Jonathan Cameron
2016-05-16  6:02   ` Matt Ranostay

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).