15 Jan, 2013

1 commit

  • Pull staging fixes from Greg Kroah-Hartman:
    "Here are a number of small fixes to staging drivers for your 3.8-rc3
    tree.

    Well, the omapdrm fixes aren't really "small" but they were waiting on
    a number of other drm patches to go in through the drm tree, and got
    delayed by my vacation over the holidays. They are totally
    self-contained, everyone involved have acked them, and they fix issues
    that people have been having with the driver.

    Other than that one, it's a bunch of tiny bugfixes for a number of
    reported issues.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'staging-3.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (36 commits)
    staging: zram: fix invalid memory references during disk write
    staging: tidspbridge: use prepare/unprepare on dsp clocks
    staging: tidspbridge: Fix build breakage due to splitting CM functions.
    staging: comedi: comedi_test: fix race when cancelling command
    staging: comedi: Kconfig: COMEDI_NI_AT_A2150 should select COMEDI_FC
    staging: comedi: prevent auto-unconfig of manually configured devices
    staging: comedi: fix minimum AO period for NI 625x and NI 628x
    staging: vme_pio2: fix oops on module unloading
    staging: speakup: avoid out-of-range access in synth_add()
    staging: speakup: avoid out-of-range access in synth_init()
    staging: rtl8192e: Fix failure to check pci_map_single()
    staging: rtl8187se: Fix failure to check pci_map_single()
    staging: drm/imx: fix double free bug in error path
    staging: drm/imx: several bug fixes
    staging: drm/imx: check return value of ipu_reset()
    staging: drm/omap: fix flags in dma buf exporting
    staging: drm/omap: use omapdss low level API
    staging/fwserial: Update TODO file per reviewer comments
    staging/fwserial: Limit tx/rx to 1394-2008 spec maximum
    staging/fwserial: Refine Kconfig help text
    ...

    Linus Torvalds
     

04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, and __devexit
    from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Cc: Jonathan Cameron
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

27 Dec, 2012

11 commits


17 Dec, 2012

1 commit

  • Pull MFS update from Samuel Ortiz:
    "This is the MFD patch set for the 3.8 merge window.

    We have several new drivers, most of the time coming with their sub
    devices drivers:

    - Austria Microsystem's AS3711
    - Nano River's viperboard
    - TI's TPS80031, AM335x TS/ADC,
    - Realtek's MMC/memstick card reader
    - Nokia's retu

    We also got some notable cleanups and improvements:

    - tps6586x got converted to IRQ domains.
    - tps65910 and tps65090 moved to the regmap IRQ API.
    - STMPE is now Device Tree aware.
    - A general twl6040 and twl-core cleanup, with moves to the regmap
    I/O and IRQ APIs and a conversion to the recently added PWM
    framework.
    - sta2x11 gained regmap support.

    Then the rest is mostly tiny cleanups and fixes, among which we have
    Mark's wm5xxx and wm8xxx patchset."

    Far amount of annoying but largely trivial conflicts. Many due to
    __devinit/exit removal, others due to one or two of the new drivers also
    having come in through another tree.

    * tag 'mfd-3.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (119 commits)
    mfd: tps6507x: Convert to devm_kzalloc
    mfd: stmpe: Update DT support for stmpe driver
    mfd: wm5102: Add readback of DSP status 3 register
    mfd: arizona: Log if we fail to create the primary IRQ domain
    mfd: tps80031: MFD_TPS80031 needs to select REGMAP_IRQ
    mfd: tps80031: Add terminating entry for tps80031_id_table
    mfd: sta2x11: Fix potential NULL pointer dereference in __sta2x11_mfd_mask()
    mfd: wm5102: Add tuning for revision B
    mfd: arizona: Defer patch initialistation until after first device boot
    mfd: tps65910: Fix wrong ack_base register
    mfd: tps65910: Remove unused data
    mfd: stmpe: Get rid of irq_invert_polarity
    mfd: ab8500-core: Fix invalid free of devm_ allocated data
    mfd: wm5102: Mark DSP memory regions as volatile
    mfd: wm5102: Correct default for LDO1_CONTROL_2
    mfd: arizona: Register haptics devices
    mfd: wm8994: Make current device behaviour the default
    mfd: tps65090: MFD_TPS65090 needs to select REGMAP_IRQ
    mfd: Fix stmpe.c build when OF is not enabled
    mfd: jz4740-adc: Use devm_kzalloc
    ...

    Linus Torvalds
     

30 Nov, 2012

8 commits

  • Remove duplicated include.

    Signed-off-by: Wei Yongjun
    Signed-off-by: Jonathan Cameron

    Wei Yongjun
     
  • Remove duplicated include.

    Signed-off-by: Wei Yongjun
    Signed-off-by: Jonathan Cameron

    Wei Yongjun
     
  • Smatch complains that snprintf() returns the number of characters,
    not counting the NUL terminator, which *would* have been printed if
    there were enough space. In other words the return value could be more
    than sizeof(buf).

    In this case, we are printing something like "ff.ff\n" which is at most
    6 characters and a NUL so that's not an issue. I changed snprintf() to
    scnprintf() to silence the warning.

    But since the buffer doesn't include space for the NUL terminator, we
    need to make it bigger or the "\n" will be truncated off.

    Signed-off-by: Dan Carpenter
    Acked-By: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Dan Carpenter
     
  • It's slightly cleaner to use kstrtouint() because we pass unsigned ints
    to adis16136_set_freq(). On 64 bit systems, if the user passed LONG_MIN
    then it we would get past the test against zero but crash in
    adis16136_set_freq() because we truncate the high bits away.

    Signed-off-by: Dan Carpenter
    Acked-By: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Dan Carpenter
     
  • Add support for reading conversion results from the ADC and provide them
    through a single IIO channel. A proper scaling factor is also exported
    based on the reference voltage provided by a regulator.

    Signed-off-by: Thierry Reding
    Reviewed-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Thierry Reding
     
  • The ad7796 and ad7797 are similar to the ad7792 and ad7793 but only have a
    single differential input instead of two. Also some other features are missing
    like the programmable gain amplifier and also not all sampling frequencies
    supported by the ad7792/ad7793 are supported by the ad7796/ad7797. This patch
    adds new feature flags for the features not present in the ad7796/ad7797. The
    patch also adds a struct iio_info field to the chip_info struct, this becomes
    necessary since the ad7796/ad7797 needs a special set of sysfs attributes.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     
  • The ad7798 and ad7799 are similar to the ad7792 and ad7793 but are missing some
    features like the temperature sensor, being able to use an external clocksource
    and a few other things. This patch adds a new 'flags' fields to the chip_info
    struct which allows to specify which features a certain chip variant supports.
    The setup code will then ignore any platform data fields which are related to
    non supported features.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     
  • The driver does not expose any custom API to userspace and none of the standard
    static code checker tools report any issues, so move it out of staging.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     

22 Nov, 2012

1 commit


21 Nov, 2012

7 commits

  • This patch adds support for the ADIS16375, ADIS16480, ADIS16485, ADIS16488 6
    degree to 10 degree of freedom IMUs.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     
  • Factor out the code for parsing fixed point numbers into its own function and
    make this function globally available. This allows us to reuse the code to parse
    fixed point numbers in individual IIO drivers.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     
  • This patch adds support for a new IIO channel type for pressure measurements.
    This can for example be used for barometric pressure sensors.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     
  • Some of the newer generation devices from the ADIS16XXX series have more
    registers than what can be supported with the current register addressing
    scheme. These devices implement register paging to support a larger register
    range. Each page is 128 registers large and the currently active page can be
    selected via register 0x00 in each page. This patch implements transparent
    paging inside the common adis library. The register read/write interface stays
    the same and when a register is accessed the library automatically switches to
    the correct page if it is not already selected. The page number is encoded in
    the upper bits of the register number, e.g. register 0x5 of page 1 is 0x85.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     
  • This patch adds support for the ADIS16133, ADIS16135, ADIS16136 single channel
    gyroscopes. The main difference between them is the sensor precision.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     
  • Some of the newer generation devices from the ADIS16XXX family have 32bit wide
    register which spans two 16bit wide registers. This patch adds support for
    reading and writing a 32bit wide register.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     
  • Provide a IIO debugfs register access function for the ADIS library. This
    function can be used by individual drivers to allow raw register access via
    debugfs.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     

20 Nov, 2012

3 commits


17 Nov, 2012

3 commits

  • Return -ENOMEM instead of 0 if kmemdup fails.

    Signed-off-by: Axel Lin
    Signed-off-by: Jonathan Cameron

    Axel Lin
     
  • The function __iio_add_event_config_attrs is only called once, by the
    function iio_device_register_eventset. If the call fails,
    iio_device_register_eventset calls __iio_remove_event_config_attrs. There
    is thus no need for __iio_add_event_config_attrs to also call
    __iio_remove_event_config_attrs on failure.

    A simplified version of the semantic match that finds this problem is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @r@
    identifier f,free,a;
    parameter list[n] ps;
    type T;
    expression e;
    @@

    f(ps,T a,...) {
    ... when any
    when != a = e
    if(...) { ... free(a); ... return ...; }
    ... when any
    }

    @@
    identifier r.f,r.free;
    expression x,a;
    expression list[r.n] xs;
    @@

    * x = f(xs,a,...);
    if (...) { ... free(a); ... return ...; }
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Jonathan Cameron

    Julia Lawall
     
  • It's non-sense to use tristate for the option, it's bool.

    Signed-off-by: Kirill A. Shutemov
    Signed-off-by: Jonathan Cameron

    Kirill A. Shutemov
     

10 Nov, 2012

4 commits