Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1372194
| Path | csiph.com!news.freedyn.net!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Alison Schofield <amsfield22@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/9] iio: use regmap to retrieve struct device |
| Date | Wed, 06 Apr 2016 07:20:02 +0200 |
| Message-ID | <rkO2K-7uk-9@gated-at.bofh.it> (permalink) |
| X-Original-To | jic23@kernel.org |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=/P1whFhRupi7Nqi//o+1u9NZdduelg8sC6+Rw9IvIC0=; b=r+1ERjwHmYN+EnS428FW6kPkPLCCNjNOyDFD5XQKEOVI16Fnpy95ZY+wz1+59OFhrg pOvVAnvGJmDBc7fqYzCDO/cUdqSBTb7vP4+msjv29hHzHOabSbePX3JyPO+eNFZ05dQx dVmee5sEH/VlJ00dDXGOcUorDjZU+wAa3zFflYU2oxHY/uFi3to5RHtlJZGu21O9LhPd NDVJnTgdcqrh/vL4IxAIJgekGeQV8QUPIf/fQxcfhQ2jtE26bOua/tGNsEhXOmU2qSAX fILNHjUfb2WkeS0daLp+X5T/XdUBfp0nMadBFB5h6tG/PgU0qdXzcwcRRPWpQqPVZdjO 5MlQ== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=/P1whFhRupi7Nqi//o+1u9NZdduelg8sC6+Rw9IvIC0=; b=C/20aXFupg4XFp9h2idmCmJJ+w6RaFLgwRVtJkjbaM2B1x1ZtrRj9Lysd6LRWpL3Yx 7a3+9srN+Aww5gpe9y5mrhG081x6AwWxvO7C8m5EJuSGHGPNtHiOb0H1fQ9cuyTkLz9g SwQOumUacCsT0Oh4MKsM5g+gEyk7jFEC1br2sHTsYJPpTw89b1tu2dS2o1Zed0ULoC6V mZQNvDnFMT5v1R9PeGWVGhX6oxmZCCW4htuzd+v0vwuZGl5vCXBm44mPWwBUxzguXDUs YID+QKE7BoSP4XNwD0SbJcmmZisJTKoUokp4OTFd++hDLgCaW6llNxsYSKIPPzYwKZqg DP7A== |
| X-Gm-Message-State | AD7BkJKDT34RZ2ATigOhkiLcqK9BSLHcbmgLfzdTd1Ybce5HDu95eSRnz4lZMBSKmURoXA== |
| X-Received | by 10.98.16.22 with SMTP id y22mr46603421pfi.50.1459919717494; Tue, 05 Apr 2016 22:15:17 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.23 (2014-03-12) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, kgene@kernel.org, k.kozlowski@samsung.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org |
| X-Original-Date | Tue, 5 Apr 2016 22:15:15 -0700 |
| X-Original-Message-ID | <cover.1459918214.git.amsfield22@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1372194 |
Show key headers only | View raw
These drivers include both struct regmap and struct device in their global data. Remove the redundant copy by deleting struct device from the drivers global data and using regmap API to retrieve when needed. This patchset removes all such redundancies in drivers/iio/. Patches created using Coccinelle plus hand edits for whitespace and one local var naming collision. Alison Schofield (9): iio: adc: exynos_adc: use regmap to retrieve struct device iio: adc: qcom-spmi-iadc: use regmap to retrieve struct device iio: adc: qcom-spmi-vadc: use regmap to retrieve struct device iio: accel: bmc150: use regmap to retrieve struct device iio: accel: mma7455: use regmap to retrieve struct device iio: accel: mxc4005: use regmap to retrieve struct device iio: health: afe4403: use regmap to retrieve struct device iio: health: afe4404: use regmap to retrieve struct device iio: gyro: bmg160_core: use regmap to retrieve struct device drivers/iio/accel/bmc150-accel-core.c | 99 +++++++++++++++++++---------------- drivers/iio/accel/mma7455_core.c | 5 +- drivers/iio/accel/mxc4005.c | 26 +++++---- drivers/iio/adc/exynos_adc.c | 18 +++---- drivers/iio/adc/qcom-spmi-iadc.c | 32 +++++------ drivers/iio/adc/qcom-spmi-vadc.c | 37 +++++++------ drivers/iio/gyro/bmg160_core.c | 86 +++++++++++++++--------------- drivers/iio/health/afe4403.c | 36 ++++++------- drivers/iio/health/afe4404.c | 38 +++++++------- 9 files changed, 197 insertions(+), 180 deletions(-) -- 2.1.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/9] iio: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-06 07:20 +0200
[PATCH 1/9] iio: adc: exynos_adc: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-06 07:20 +0200
Re: [PATCH 1/9] iio: adc: exynos_adc: use regmap to retrieve struct device Marek Szyprowski <m.szyprowski@samsung.com> - 2016-04-06 09:10 +0200
Re: [PATCH 1/9] iio: adc: exynos_adc: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-06 22:40 +0200
Re: [PATCH 1/9] iio: adc: exynos_adc: use regmap to retrieve struct device Marek Szyprowski <m.szyprowski@samsung.com> - 2016-04-07 07:40 +0200
Re: [PATCH 1/9] iio: adc: exynos_adc: use regmap to retrieve struct device Jonathan Cameron <jic23@kernel.org> - 2016-04-10 15:50 +0200
[PATCH 3/9] iio: adc: qcom-spmi-vadc: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-06 07:20 +0200
Re: [PATCH 3/9] iio: adc: qcom-spmi-vadc: use regmap to retrieve struct device Jonathan Cameron <jic23@kernel.org> - 2016-04-10 16:00 +0200
[PATCH 6/9] iio: accel: mxc4005: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-06 07:20 +0200
[PATCH 4/9] iio: accel: bmc150: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-06 07:20 +0200
[PATCH 8/9] iio: health: afe4404: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-06 07:30 +0200
[PATCH 7/9] iio: health: afe4403: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-06 07:30 +0200
[PATCH 9/9] iio: gyro: bmg160_core: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-06 07:30 +0200
[PATCH v2 0/5] iio: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-10 21:10 +0200
[PATCH v2 2/5] iio: accel: mxc4005: use regmap to retrieve struct device Alison Schofield <amsfield22@gmail.com> - 2016-04-10 21:10 +0200
csiph-web