[PATCH 5/9] iio: accel: mma7455: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield --- drivers/iio/accel/mma7455_core.c | 5 ++--- 1 file changed, 2

[PATCH 6/9] iio: accel: mxc4005: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield --- drivers/iio/accel/mxc4005.c | 26 +++--- 1 file

[PATCH 3/9] iio: adc: qcom-spmi-vadc: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/iio/adc/qcom-spmi-vadc.

[PATCH 2/9] iio: adc: qcom-spmi-iadc: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/iio/adc/qcom-spmi-iadc.

[PATCH 3/9] iio: adc: qcom-spmi-vadc: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield --- drivers/iio/adc/qcom-spmi-vadc.c | 37

[PATCH 2/9] iio: adc: qcom-spmi-iadc: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield --- drivers/iio/adc/qcom-spmi-iadc.c | 32

[PATCH 4/9] iio: accel: bmc150: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/iio/accel/bmc150-accel-core.

[PATCH 4/9] iio: accel: bmc150: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield --- drivers/iio/accel/bmc150-accel-core.c | 99

[PATCH 1/9] iio: adc: exynos_adc: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/iio/adc/exynos_adc.

[PATCH 0/9] iio: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
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

[PATCH 1/9] iio: adc: exynos_adc: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield --- drivers/iio/adc/exynos_adc.c | 18 +- 1 file changed, 9

[PATCH 0/9] iio: use regmap to retrieve struct device

2016-04-05 Thread Alison Schofield
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

[PATCH v2] staging: iio: ad7606: use iio_device_{claim|release}_direct_mode()

2016-04-05 Thread Alison Schofield
Replace the code that guarantees the device stays in direct mode with iio_device_{claim|release}_direct_mode() which does same. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- Changed in v2: - removed improper application of claim/release from intr handler - updated cha

[PATCH v2] staging: iio: ad7606: use iio_device_{claim|release}_direct_mode()

2016-04-05 Thread Alison Schofield
Replace the code that guarantees the device stays in direct mode with iio_device_{claim|release}_direct_mode() which does same. Signed-off-by: Alison Schofield --- Changed in v2: - removed improper application of claim/release from intr handler - updated changelog drivers/staging/iio/adc

Re: [PATCH] staging: iio: ad7606: use iio_device_{claim|release}_direct_mode()

2016-04-05 Thread Alison Schofield
On Sun, Apr 03, 2016 at 10:09:13AM +0100, Jonathan Cameron wrote: > On 01/04/16 17:53, Alison Schofield wrote: > > Two instances are moved to the new claim/release API: > > > > In the first instance, the driver was using mlock followed by > > iio_buffer_enabled(). Rep

Re: [PATCH] staging: iio: ad7606: use iio_device_{claim|release}_direct_mode()

2016-04-05 Thread Alison Schofield
On Sun, Apr 03, 2016 at 10:09:13AM +0100, Jonathan Cameron wrote: > On 01/04/16 17:53, Alison Schofield wrote: > > Two instances are moved to the new claim/release API: > > > > In the first instance, the driver was using mlock followed by > > iio_buffer_enabled(). Rep

[PATCH] staging: iio: ad7606: use iio_device_{claim|release}_direct_mode()

2016-04-01 Thread Alison Schofield
was not using mlock to hold the device in direct mode, but should have been. Here we introduce the new API to guarantee direct mode. This is a change in driver behavior. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/staging/iio/adc/ad7606_core.c | 15 ---

[PATCH] staging: iio: ad7606: use iio_device_{claim|release}_direct_mode()

2016-04-01 Thread Alison Schofield
was not using mlock to hold the device in direct mode, but should have been. Here we introduce the new API to guarantee direct mode. This is a change in driver behavior. Signed-off-by: Alison Schofield --- drivers/staging/iio/adc/ad7606_core.c | 15 --- 1 file changed, 8 insertions

[PATCH] staging: iio: convert bare unsigned usage to unsigned int

2016-03-26 Thread Alison Schofield
Use kernel preferred unsigned int declaration style. Patch created using: git ls-files drivers/staging/iio | \ xargs ./scripts/checkpatch.pl -f --fix-inplace --types=unspecified_int Hand edits restored columns in structure definitions. Signed-off-by: Alison Schofield <amsfiel...@gmail.

[PATCH] staging: iio: convert bare unsigned usage to unsigned int

2016-03-26 Thread Alison Schofield
Use kernel preferred unsigned int declaration style. Patch created using: git ls-files drivers/staging/iio | \ xargs ./scripts/checkpatch.pl -f --fix-inplace --types=unspecified_int Hand edits restored columns in structure definitions. Signed-off-by: Alison Schofield --- drivers/staging/iio

Re: [RFC PATCH 1/2] iio: core: implement iio_{claim|release}_direct_mode()

2016-03-09 Thread Alison Schofield
On Sat, Mar 05, 2016 at 06:02:36PM +, Jonathan Cameron wrote: > On 02/03/16 13:28, Lars-Peter Clausen wrote: > > On 03/01/2016 08:02 PM, Alison Schofield wrote: > >> It is often the case that the driver wants to be sure a device stays > >> in direct mode while it is

Re: [RFC PATCH 1/2] iio: core: implement iio_{claim|release}_direct_mode()

2016-03-09 Thread Alison Schofield
On Sat, Mar 05, 2016 at 06:02:36PM +, Jonathan Cameron wrote: > On 02/03/16 13:28, Lars-Peter Clausen wrote: > > On 03/01/2016 08:02 PM, Alison Schofield wrote: > >> It is often the case that the driver wants to be sure a device stays > >> in direct mode while it is

[RFC PATCH v2 2/2] staging: iio: ad7192: use iio_device_{claim|release}_direct_mode()

2016-03-09 Thread Alison Schofield
Replace the code that guarantees the device stays in direct mode with iio_device_{claim|release}_direct_mode() which does same. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/staging/iio/adc/ad7192.c | 24 +--- 1 file changed, 9 insertions(+), 15 del

[RFC PATCH v2 2/2] staging: iio: ad7192: use iio_device_{claim|release}_direct_mode()

2016-03-09 Thread Alison Schofield
Replace the code that guarantees the device stays in direct mode with iio_device_{claim|release}_direct_mode() which does same. Signed-off-by: Alison Schofield --- drivers/staging/iio/adc/ad7192.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git

[RFC PATCH v2 1/2] iio: core: implement iio_device_{claim|release}_direct_mode()

2016-03-09 Thread Alison Schofield
. iio_device_release_direct_mode() Release the claim. Device is no longer guaranteed to stay in direct mode. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/iio/industrialio-core.c | 39 +++ include/linux/iio

[RFC PATCH v2 1/2] iio: core: implement iio_device_{claim|release}_direct_mode()

2016-03-09 Thread Alison Schofield
. iio_device_release_direct_mode() Release the claim. Device is no longer guaranteed to stay in direct mode. Signed-off-by: Alison Schofield --- drivers/iio/industrialio-core.c | 39 +++ include/linux/iio/iio.h | 2 ++ 2 files changed

[RFC PATCH v2 0/2] iio: introduce iio_device_{claim|release}_direct_mode()

2016-03-09 Thread Alison Schofield
for new functions o replace EINVAL with EBUSY on failure to claim direct mode o update commit msg & changelog to reflect new prefix Alison Schofield (2): iio: core: implement iio_device_{claim|release}_direct_mode() staging: iio: ad7192: use iio_device_{claim|release}_direct_mode() dri

[RFC PATCH v2 0/2] iio: introduce iio_device_{claim|release}_direct_mode()

2016-03-09 Thread Alison Schofield
for new functions o replace EINVAL with EBUSY on failure to claim direct mode o update commit msg & changelog to reflect new prefix Alison Schofield (2): iio: core: implement iio_device_{claim|release}_direct_mode() staging: iio: ad7192: use iio_device_{claim|release}_direct_mode() dri

[RFC PATCH 1/2] iio: core: implement iio_{claim|release}_direct_mode()

2016-03-01 Thread Alison Schofield
. iio_release_direct_mode() Release the claim. Device is no longer guaranteed to stay in direct mode. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/iio/industrialio-core.c | 39 +++ include/linux/iio/iio.h | 2 ++ 2

[RFC PATCH 1/2] iio: core: implement iio_{claim|release}_direct_mode()

2016-03-01 Thread Alison Schofield
. iio_release_direct_mode() Release the claim. Device is no longer guaranteed to stay in direct mode. Signed-off-by: Alison Schofield --- drivers/iio/industrialio-core.c | 39 +++ include/linux/iio/iio.h | 2 ++ 2 files changed, 41 insertions

[RFC PATCH 2/2] staging: iio: adc7192: use iio_{claim|release}_direct_mode()

2016-03-01 Thread Alison Schofield
Replace the code that guarantees the device stays in direct mode with iio_{claim|release}_direct_mode() which does same. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/staging/iio/adc/ad7192.c | 24 +--- 1 file changed, 9 insertions(+), 15 del

[RFC PATCH 2/2] staging: iio: adc7192: use iio_{claim|release}_direct_mode()

2016-03-01 Thread Alison Schofield
Replace the code that guarantees the device stays in direct mode with iio_{claim|release}_direct_mode() which does same. Signed-off-by: Alison Schofield --- drivers/staging/iio/adc/ad7192.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/drivers

[RFC PATCH 0/2] iio: introduce iio_{claim|release}_direct_mode()

2016-03-01 Thread Alison Schofield
and rejected this option because a) not sure other modes would ever need to be locked, and b) the semantic improvement is less when it is generalized. This patchset was inspired by a discussion on linux-iio: http://www.spinics.net/lists/linux-iio/msg18540.html Alison Schofield (2): iio: core

[RFC PATCH 0/2] iio: introduce iio_{claim|release}_direct_mode()

2016-03-01 Thread Alison Schofield
and rejected this option because a) not sure other modes would ever need to be locked, and b) the semantic improvement is less when it is generalized. This patchset was inspired by a discussion on linux-iio: http://www.spinics.net/lists/linux-iio/msg18540.html Alison Schofield (2): iio: core

[RFC] staging: iio: isl29018: use regmap to retrieve struct device

2016-02-22 Thread Alison Schofield
Remove struct device from drivers global data and use regmap API to retrieve device info instead. This replacement can be done for drivers that include regmap in their global data. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- drivers/staging/iio/light/isl29018.

[RFC] staging: iio: isl29018: use regmap to retrieve struct device

2016-02-22 Thread Alison Schofield
Remove struct device from drivers global data and use regmap API to retrieve device info instead. This replacement can be done for drivers that include regmap in their global data. Signed-off-by: Alison Schofield --- drivers/staging/iio/light/isl29018.c | 28 +++- 1

[RESEND PATCH v3] isdn: divamnt: use y2038-safe ktime_get_ts64() for trace data timestamps

2016-02-17 Thread Alison Schofield
, start_usec. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- Changes in v3: - use elapsed time since system boot in place of elapsed time since module load - commit message updated - changelog updated Changes in v2:

[RESEND PATCH v3] isdn: divamnt: use y2038-safe ktime_get_ts64() for trace data timestamps

2016-02-17 Thread Alison Schofield
, start_usec. Signed-off-by: Alison Schofield Reviewed-by: Arnd Bergmann --- Changes in v3: - use elapsed time since system boot in place of elapsed time since module load - commit message updated - changelog updated Changes in v2: - switched to monotonic time - removed the unused

[RESEND PATCH v2] scsi: gdth: replace struct timeval with ktime_get_real_seconds()

2016-02-17 Thread Alison Schofield
s piece itself doesn't warrant an alternative, but if we do introduce a new structure & ioctl with u64 timestamps, this would change accordingly. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- Changes in v2: - remove unne

[RESEND PATCH v2] scsi: gdth: replace struct timeval with ktime_get_real_seconds()

2016-02-17 Thread Alison Schofield
s piece itself doesn't warrant an alternative, but if we do introduce a new structure & ioctl with u64 timestamps, this would change accordingly. Signed-off-by: Alison Schofield Reviewed-by: Arnd Bergmann --- Changes in v2: - remove unnecessary ktime.h includes - add comment in code to expl

[PATCH v2] scsi: gdth: replace struct timeval with ktime_get_real_seconds()

2015-11-24 Thread Alison Schofield
s piece itself doesn't warrant an alternative, but if we do introduce a new structure & ioctl with u64 timestamps, this would change accordingly. Signed-off-by: Alison Schofield --- Changes in v2: - remove unnecessary ktime.h includes - add comment in code to explain elapsed time calcula

[PATCH v2] scsi: gdth: replace struct timeval with ktime_get_real_seconds()

2015-11-24 Thread Alison Schofield
s piece itself doesn't warrant an alternative, but if we do introduce a new structure & ioctl with u64 timestamps, this would change accordingly. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- Changes in v2: - remove unnecessary ktime.h includes - add comment in code to expla

[PATCH v3] scsi: pmcraid: replace struct timeval with ktime_get_real_seconds()

2015-11-09 Thread Alison Schofield
c64 ts; ktime_get_real_ts64(); timestamp = ts.tv_sec * MSEC_PER_SEC + ts.tv_nsec / NSEC_PER_MSEC; MAINTAINER: Please request alternate change if preferred. Signed-off-by: Alison Schofield --- Change in v3: * move alternative change proposal above the '---' to save Changes in v2: * add pmcraid to subjec

[PATCH v3] scsi: pmcraid: replace struct timeval with ktime_get_real_seconds()

2015-11-09 Thread Alison Schofield
c64 ts; ktime_get_real_ts64(); timestamp = ts.tv_sec * MSEC_PER_SEC + ts.tv_nsec / NSEC_PER_MSEC; MAINTAINER: Please request alternate change if preferred. Signed-off-by: Alison Schofield <amsfiel...@gmail.com> --- Change in v3: * move alternative change proposal above the '---' to save Changes

<    1   2   3   4