[PATCH] staging: sm750fb: Correctly set CLOCK_PHASE bit of display controller.

2016-09-02 Thread Phil Turnbull
NEL_DISPLAY_CTRL single-bit fields") Signed-off-by: Phil Turnbull --- drivers/staging/sm750fb/ddk750_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/ddk750_mode.c b/drivers/staging/sm750fb/ddk750_mode.c index ccb4e067661a..e29d4bd5d

[PATCH] staging: comedi: adv_pci1760: Do not return EINVAL for CMDF_ROUND_DOWN.

2016-07-29 Thread Phil Turnbull
The CMDF_ROUND_DOWN case falls through and so always returns -EINVAL. Fixes: 14b93bb6bbf0 ("staging: comedi: adv_pci_dio: separate out PCI-1760 support") Signed-off-by: Phil Turnbull --- drivers/staging/comedi/drivers/adv_pci1760.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] staging: iio: ad5933: Return correct value for AD5933_OUT_RANGE.

2016-07-21 Thread Phil Turnbull
The 'break' statement after calling ad5933_cmd only breaks out of the 'for' loop, which then unconditionally sets the return value to -EINVAL. Move the initialisation of 'ret' so we return the correct value. Signed-off-by: Phil Turnbull --- drivers/staging/iio/i