Linux Samsung SOC development
 help / color / mirror / Atom feed
From: "Andrew F. Davis" <afd-l0cyMroinI0@public.gmane.org>
To: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Alison Schofield
	<amsfield22-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: knaack.h-Mmb7MZpHnFY@public.gmane.org,
	lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org,
	pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org,
	kgene-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2 4/5] iio: health: afe4404: use regmap to retrieve struct device
Date: Sun, 17 Apr 2016 13:07:52 -0500	[thread overview]
Message-ID: <5713D0F8.20303@ti.com> (raw)
In-Reply-To: <57129101.7000503-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

On 04/16/2016 02:22 PM, Jonathan Cameron wrote:
> On 10/04/16 20:07, Alison Schofield wrote:
>> Driver includes struct regmap and struct device in its global data.
>> Remove the struct device and use regmap API to retrieve device info.
>>

Why? This adds nothing but more code to get dev through some
container_of trickery when we could just keep a dev pointer in the data
structure.

Andrew

  parent reply	other threads:[~2016-04-17 18:07 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-06  5:15 [PATCH 0/9] iio: use regmap to retrieve struct device Alison Schofield
2016-04-06  5:15 ` [PATCH 1/9] iio: adc: exynos_adc: " Alison Schofield
2016-04-06  7:03   ` Marek Szyprowski
     [not found]     ` <5704B4A4.1070704-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2016-04-06 20:33       ` Alison Schofield
     [not found]         ` <20160406203308.GA3462-WHVijhI79TDuUkLf1qLn2g@public.gmane.org>
2016-04-07  5:33           ` Marek Szyprowski
     [not found]             ` <5705F131.4090201-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2016-04-10 13:45               ` Jonathan Cameron
     [not found] ` <cover.1459918214.git.amsfield22-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-06  5:16   ` [PATCH 2/9] iio: adc: qcom-spmi-iadc: " Alison Schofield
2016-04-10 13:54     ` Jonathan Cameron
2016-04-06  5:18   ` [PATCH 5/9] iio: accel: mma7455: " Alison Schofield
2016-04-06  7:35     ` Joachim Eastwood
2016-04-10 13:51       ` Jonathan Cameron
2016-04-06  5:19   ` [PATCH 6/9] iio: accel: mxc4005: " Alison Schofield
2016-04-06  5:20   ` [PATCH 7/9] iio: health: afe4403: " Alison Schofield
2016-04-06  5:21   ` [PATCH 9/9] iio: gyro: bmg160_core: " Alison Schofield
2016-04-06  5:17 ` [PATCH 3/9] iio: adc: qcom-spmi-vadc: " Alison Schofield
2016-04-10 13:55   ` Jonathan Cameron
2016-04-06  5:18 ` [PATCH 4/9] iio: accel: bmc150: " Alison Schofield
2016-04-06  5:20 ` [PATCH 8/9] iio: health: afe4404: " Alison Schofield
2016-04-10 19:03 ` [PATCH v2 0/5] iio: " Alison Schofield
2016-04-10 19:06   ` [PATCH v2 2/5] iio: accel: mxc4005: " Alison Schofield
2016-04-16 19:21     ` Jonathan Cameron
     [not found]   ` <cover.1460314070.git.amsfield22-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-10 19:05     ` [PATCH v2 1/5] iio: accel: bmc150: " Alison Schofield
2016-04-16 19:20       ` Jonathan Cameron
2016-04-18 12:18         ` Tirdea, Irina
     [not found]         ` <57129064.9050508-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-04-18 14:59           ` Srinivas Pandruvada
     [not found]             ` <1460991578.8946.10.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2016-04-18 19:16               ` Jonathan Cameron
2016-04-10 19:07     ` [PATCH v2 3/5] iio: health: afe4403: " Alison Schofield
2016-04-16 19:22       ` Jonathan Cameron
2016-04-10 19:07     ` [PATCH v2 4/5] iio: health: afe4404: " Alison Schofield
2016-04-16 19:22       ` Jonathan Cameron
     [not found]         ` <57129101.7000503-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-04-17 18:07           ` Andrew F. Davis [this message]
2016-04-10 19:08   ` [PATCH v2 5/5] iio: gyro: bmg160: " Alison Schofield
2016-04-16 19:24     ` Jonathan Cameron
     [not found]       ` <57129157.3080603-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-04-18 15:03         ` Srinivas Pandruvada

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=5713D0F8.20303@ti.com \
    --to=afd-l0cymroini0@public.gmane.org \
    --cc=amsfield22-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=kgene-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=knaack.h-Mmb7MZpHnFY@public.gmane.org \
    --cc=lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox