23 May, 2013
12 commits
-
This patch fixes the "Code indent should usually use tabs" and
"no spaces at front of line" warnings generated by checkpatch.pi.Signed-off-by: Dulshani Gunawardhana
Signed-off-by: Greg Kroah-Hartman -
This patch corrects the error "Space prohibited between function name
and parenthesis", generated by using checkpatch.pi.Signed-off-by: Dulshani Gunawardhana
Signed-off-by: Greg Kroah-Hartman -
…/iio into staging-next
Jonathan writes:
First round of new IIO drivers and cleanups for the 3.11 cycle.
1) New driver for MCP3204/08 12 bit ADCs
2) Move the sysfs trigger out of staging. This has been pretty clean for a
long time so lets finally move it out.
3) New functionality for the ak8975 magnetometer (DT and data ready interrupt
handling)
4) Use devm_ioremap_resource in exynos_adc. We have 3 separate versions of
this patch proposed but this one got there first.
5) A couple of other tiny fixes. -
Use the newly introduced devm_ioremap_resource() instead of
devm_request_and_ioremap() which provides more consistent error handling.Signed-off-by: Sachin Kamat
Signed-off-by: Jonathan Cameron -
The original driver was pasted from accelerometer driver, but the name
of the ID was not changed. This patch fixes this comment.Signed-off-by: Alexandre Relange
Signed-off-by: Jonathan Cameron -
Drivers for STMicroelectronics accelerometers, gyroscopes, and
magnetometers were added in v3.9. They all have a (similar) select
statement in their Kconfig files for a non-existant Kconfig symbol.
These select statements can safely be removed.Signed-off-by: Paul Bolle
Acked-by: Denis Ciocca
Signed-off-by: Jonathan Cameron -
Implement "data ready" interrupt handling in addition to the
two existing read modes - DRDY GPIO polling and ST1 register
DRDY bit polling.Signed-off-by: Jacek Anaszewski
Signed-off-by: Kyungmin Park
Signed-off-by: Jonathan Cameron -
Add support for parsing 'gpios' property when initializing
from oftree.
This patch adds also the binding documentation file.Signed-off-by: Jacek Anaszewski
Signed-off-by: Kyungmin Park
Signed-off-by: Jonathan Cameron -
This simple driver is rather useful. No issues about its interface
have been raised for some time hence the proposal to move it out
of staging.Signed-off-by: Jonathan Cameron
-
We know the exact iio->masklength = LRADC_MAX_TOTAL_CHANS.
Let's use it consistently.Signed-off-by: Michał Mirosław
Signed-off-by: Jonathan Cameron -
1. make messages grepable (in one line)
2. include returned errno in themSigned-off-by: Michał Mirosław
Signed-off-by: Jonathan Cameron -
This adds support for Microchip's 12 bit AD converters MCP3204 and
MCP3208. These chips communicates over SPI and supports single-ended
and pseudo-differential configurations.Signed-off-by: Oskar Andero
Reviewed-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
22 May, 2013
28 commits
-
This patch change the comment style to C89 and removes a unnecessary line.
Signed-off-by: Severin Gsponer
Signed-off-by: Greg Kroah-Hartman -
Changed the comment style to C89 in vendorspecificextn.c. Found with checkpatch.pl
Signed-off-by: Severin Gsponer
Signed-off-by: Greg Kroah-Hartman -
This patch fixes indentation warning found by checkpatch.pl in
tidspbridge/_tiomap.hSigned-off-by: Tülin İzer
Signed-off-by: Greg Kroah-Hartman -
This patch fixes indentation warning found by checkpatch.pl
in tidspbridge/tiomap3430_pwr.cSigned-off-by: Tülin İzer
Signed-off-by: Greg Kroah-Hartman -
This patch fixes indentation warning found by checkpatch.pl in
tidspbridge/wdt.cSigned-off-by: Tülin İzer
Signed-off-by: Greg Kroah-Hartman -
This patch fixes warning about space formatting around pointer
found by checkpatch.pl in tidsbridge/ue_deh.cSigned-off-by: Tülin İzer
Signed-off-by: Greg Kroah-Hartman -
This patch fixed indentation warning found by checkpatch.pl in
tidsbridge/_tiomap_pwr.hSigned-off-by: Tülin İzer
Signed-off-by: Greg Kroah-Hartman -
This patch fixes warning 'space prohibited before semicolon' found by
checkpatch.pl in tidspbridge/_tiomap.hSigned-off-by: Tülin İzer
Signed-off-by: Greg Kroah-Hartman -
Changed parameters in the kstrtol() function inside main.c to resolve
warnings re: mismatched data types used.Signed-off-by: Lisa Nguyen
Reported-by: kbuild test robot
Signed-off-by: Greg Kroah-Hartman -
Use comedi_load_firmware() instead of duplicating the code in a
private function.Also, rename firmwareUpload() to have namespace associated with
the driver.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
The last step the usb_driver (*probe) does before handing off to the
comedi_driver (*auto_attach) is requesting and uploading the firmware.Move the request/upload into the (*auto_attach) so we can use the
comedi_load_firmware() helper.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Absorb the usbduxsub_stop(), usbduxsub_upload(), and usbduxsub_start()
functions into firmwareUpload().Each of them just do a usb_control_msg() to the device and output
an error message if it fails. A similar message is also output by
firmware_upload() so the extra messages are redundant.We can also share the malloc'ed local buffer needed for the
usb_control_msg().Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Change the request_firmware_nowait() to a request_firmware() so
that the usb_driver (*probe) can continue with the comedi_driver
(*auto_attach).Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Use comedi_load_firmware() instead of duplicating the code in a
private function.Also, rename firmware_upload() to have namespace associated with
the driver.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
The last step the usb_driver (*probe) does before handing off to the
comedi_driver (*auto_attach) is requesting and uploading the firmware.Move the request/upload into the (*auto_attach) so we can use the
comedi_load_firmware() helper.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Absorb the usbdux_stop(), usbdux_upload(), and usbdux_start()
functions into firmware_upload().Each of them just do a usb_control_msg() to the device and output
an error message if it fails. A similar message is also output by
firmware_upload() so the extra messages are redundant.We can also share the malloc'ed local buffer needed for the
usb_control_msg().Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Change the request_firmware_nowait() to a request_firmware() so
that the usb_driver (*probe) can continue with the comedi_driver
(*auto_attach).Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Use comedi_load_firmware() instead of duplicating the code in a
private function.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Use the helper function to get a usb_device pointer from a
comedi_device pointer. This removes the need for also getting
the usb_interface pointer in some cases.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
This driver uses the comedi auto attach mechanism so the comedi_device
will always have an associated usb_interface and usb_device.Remove the unnecessary checks if the comedi_device has a usb_interface
attached. This also allows removing the usb_interface from the private
data.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Use the helper function to get a usb_device pointer from a
comedi_device pointer. This removes the need carring the
usb_device pointer in the private data.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Instead of passing the private data to the internal functions. pass
the comedi_device pointer and get the private data from it.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Use the helper function to get a usb_device pointer from a
comedi_device pointer. This removes the need for also getting
the usb_interface pointer in some cases.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
Introduce a helper function to get a usb_device pointer from a
comedi_device pointer.Signed-off-by: H Hartley Sweeten
Cc Ian Abbott
Signed-off-by: Greg Kroah-Hartman -
This patch replaces the calls to kfree_skb with
calls to dev_kfree_skb.Signed-off-by: Xenia Ragiadakou
Signed-off-by: Greg Kroah-Hartman -
This patch replaces the calls to kfree_skb with
calls to dev_kfree_skb.Signed-off-by: Xenia Ragiadakou
Signed-off-by: Greg Kroah-Hartman -
This patch replaces the calls to alloc_skb with calls
to dev_alloc_skb.dev_alloc_skb has GFP_ATOMIC priority so the
replacement does not change the code semantics.Signed-off-by: Xenia Ragiadakou
Signed-off-by: Greg Kroah-Hartman -
This patch replaces the calls to alloc_skb with calls
to dev_alloc_skb.dev_alloc_skb has GFP_ATOMIC priority so the
replacement does not change the code semantics.Signed-off-by: Xenia Ragiadakou
Signed-off-by: Greg Kroah-Hartman