27 Apr, 2012
1 commit
-
This moves the VME core, VME board drivers, and VME bridge drivers out
of the drivers/staging/vme/ area to drivers/vme/.The VME device drivers have not moved out yet due to some API questions
they are still working through, that should happen soon, hopefully.Cc: Martyn Welch
Cc: Manohar Vanga
Cc: Vincent Bossier
Cc: "Emilio G. Cota"
Signed-off-by: Greg Kroah-Hartman
26 Apr, 2012
20 commits
-
Signed-off-by: Rupesh Gujare
Signed-off-by: Chris Kelly
Signed-off-by: Greg Kroah-Hartman -
Fix up some broken printk strings that were spanning multiple lines,
making it hard to search for them.Cc: Manohar Vanga
Cc: Martyn Welch
Cc: "Emilio G. Cota"
Cc: Dan Carpenter
Signed-off-by: Greg Kroah-Hartman -
This file contains only the most generic elements. Other
class specific and device specific ABI documents will follow
over time.Signed-off-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
Take the core support + the kfifo buffer implentation out of
staging. Whilst we are far from done in improving this subsystem
it is now at a stage where the userspae interfaces (provided by
the core) can be considered stable.Drivers will follow over a longer time scale.
Signed-off-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
Step 1 in moving the IIO core out of staging.
Signed-off-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
Just a couple of things I came across whilst reviewing this file for
moving out of staging. I doubt anyone cares, but seemed sensible to fix
them now!Signed-off-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
These two attributes are only used in the one driver. Whilst they
are fairly general I'm not entirely happy committing to them at
this stage.Signed-off-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
Correct spelling in comments withon staging/ozwpan
Signed-off-by: Masanari Iida
Acked-by: Chris Kelly
Signed-off-by: Greg Kroah-Hartman -
MM code always uses PageXXX to handle page flags.
Let's keep the consistency.Signed-off-by: Minchan Kim
Acked-by: Nitin Gupta
Signed-off-by: Greg Kroah-Hartman -
There is one device supported by the driver which is not listed in the Kconfig
help test. This patch adds it. Also we are past the point were we can possible
fit all devices supported by the driver in the Kconfig entry title, so just list
the initial device that was supported by this driver and note that similar
devices are supported as well.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
The AD5662 is compatible to the AD5660, but uses an external
reference instead of an internal.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
We can not read back the value from the device, but we cache the value anyway so
we might as well return the cached value instead of an error.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
The devices supported by this drivers only have a single shift register, which
contains both the power down mode and the output sample. So writing the power
down mode and the output sample can be done by the same function. Call this
function prepare_write as it will prepare the spi message for a write. Also
introduce a small helper function which performs the whole write by calling the
chip the specific prepare function followed by a spi_sync.The two power down bits are always placed ontop of the msb of the output sample,
so we can easily calculate their position by adding the channels shift to the
channels realbits.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
Use extended channel attributes instead of raw sysfs files for the additional
channel attributes.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
There are three identical chip_info entries. Remove two of them and use the id
of the remaining entry for all three device table entries.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
Use the chip_info's int_vref_mv field to decide whether a certain chip has a
internal reference or not. There is no need to check for individual chip ids.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
Remove the unused "poll_work" field from the ad5446_state struct.
Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
We currently only write 16 bit in case where we should write 24 bit. The spi message
length is calculated from the channel storage_size, but since the storage size
is only 16 bit we end up with the wrong value for devices which have power down
bits and thus a register with 24 bit. Since each store function knows how many
bytes it has to write just use the spi_write function from there instead of
going through the hassle of manually preparing a spi_message and keeping buffers
in the state struct.Another advantage of this patch is that it will make implementing support for
similar I2C based DACs much easier.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
AD5620_LOAD and AD5446_LOAD are both 0, so all these three functions are
identical and we can replace them with only one.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
Both the powerdown mode bits and the sample value are stored in the same
register, so writing a sample while the device is powered down will clear the
power down bits. To avoid this only update the cached value when the device is
powered down.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron----
v1 actually had a small bug in that it would still write to the device's
register when the sample was updated while the device was powered down. This was
not critical since it would send out the powerdown mode again.
Signed-off-by: Greg Kroah-Hartman
25 Apr, 2012
19 commits
-
TAOS (version 9a) tsl2x7x driver change / bug fix.
Fixed - removed decimal multiplications.
Added missing 'static' declarations
Fixed _read_raw case logic to allow reading of _PROCESSED IIO_LIGHT
Replaced udelay with mdelay to accomodate eabi.Signed-off-by: Jon Brenner
Signed-off-by: Greg Kroah-Hartman -
TAOS device driver (version 9) for the tsl/tmd 2771 and 2772 device families (inc. all variants).
Update:
Removed bonus lines.Signed-off-by: Jon Brenner
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman -
s626_attach is referencing s626_pci_table which is annotated
__devinitconst. Put pci vendor/device ids in the s626_board struct and
use s626_boards instead similar to what is done in gsc_hpdi.v2: I had moved the PCI id defines to s626.h earlier, but later
decided to leave them in s626.c and forgot to move them up above where
they are being used in s626_boards.Signed-off-by: Gerard Snitselaar
Signed-off-by: Greg Kroah-Hartman -
Move the module_init/module_exit routines and the associated
struct comedi_driver variable to the end of the source. This is
more typical of how other drivers are written and removes the
need for the forward declarations.Also, move the do_config function to remove needing to have
a forward declaration for that routine.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the module_init/module_exit routines and the associated
struct comedi_driver and struct boardtype variables to the end
of the source. This is more typical of how other drivers are
written and removes the need to the forward declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the module_init/module_exit routines and variables to the
end of the source as is more typically done with other drivers.
Then rearrange the attach/detach and probe/remove functions,
this removes the need for all the forward declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the struct comedi_driver variable and the associated
attach/detach routines to remove the need for the forward
declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
CC: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the struct comedi_driver variable and the associated
attach/detach routines to remove the need for the forward
declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the struct comedi_driver variable and the associated
attach/detach routines to remove the need for the forward
declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the struct comedi_driver variable and the associated
attach/detach routines to remove the need for the forward
declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the module_init/module_exit routines and variables to the
end of the source as is more typically done with other drivers.
Then rearrange the attach/detach and probe/remove functions,
this removes the need for all the forward declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the module_init/module_exit routines and the associated
struct comedi_driver and struct boardtype variables to the end
of the source as is more typically done with other drivers. Then
rearrange the attach/detach functions, this removes the need
for all the forward declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the struct comedi_driver variable and the associated
attach/detach routines to remove the need for the forward
declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the struct comedi_driver variable and the associated
attach/detach routines to remove the need for the forward
declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Move the struct comedi_driver variable to remove the need
or the forward declarations.Signed-off-by: H Hartley Sweeten
Cc: Ian Abbott
Cc: Mori Hess
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
aux_free is freed on all other exits from the function. By removing the
return, we can benefit from the vfree already at the end of the function.Signed-off-by: Julia Lawall
Cc: stable
Signed-off-by: Greg Kroah-Hartman -
This removes a space between a cast and the variable and makes the
case statements in the switch stylewise consistent as to whether
there's a blank line before each 'case' or not.Signed-off-by: Jesper Juhl
Signed-off-by: Greg Kroah-Hartman -
Remove some unneeded explicit casts from
drivers/staging/vt6656/ioctl.cSigned-off-by: Jesper Juhl
Signed-off-by: Greg Kroah-Hartman -
Just a trivial style cleanup.
Signed-off-by: Jesper Juhl
Acked-by: Andres Salomon
Signed-off-by: Greg Kroah-Hartman