22 Sep, 2014

1 commit


15 Sep, 2014

2 commits


27 Aug, 2014

1 commit


27 Jul, 2014

1 commit

  • Fix build warning, sizeof() called on dynamically
    sized pointer, by removing the call and the dependent
    function parameter. It is not needed or used in this
    driver, when pushing values to an iio buffer.

    Changes from v1
    - Fix mistake in varible name

    Signed-off-by: Reyad Attiyat
    Signed-off-by: Jonathan Cameron

    Reyad Attiyat
     

25 Jul, 2014

1 commit

  • …/iio into staging-next

    Jonathan writes:

    Fourth round of IIO new drivers, functionality and cleanups for the 3.17 cycle

    New functionality
    * A new modifier to indicate that a rotation is relative to either
    true or magnetic north. This is to be used by some magnetometers
    that provide data in this way.
    * hid magnetometer now supports output rotations from various variants on
    North
    * HMC5843 driver converted to regmap and reworked to allow easy support
    of other similar devices. Support for HMC5983 added via both i2c and SPI.
    * Rework of Exynos driver to simplify extension to support more devices.
    * Addition of support for the Exynos3250 ADC (which requires an additional
    clock) Support for quite a few more devices on its way.

    Cleanups
    * ad7997 - a number of cleanups and tweaks to how the events are controlled
    to make it more intuitive.
    * kxcjk - cleanups and minor fixes for this new driver.

    Greg Kroah-Hartman
     

20 Jul, 2014

2 commits


14 Jul, 2014

1 commit


12 Jul, 2014

1 commit

  • The I2C devices that make up the STMicroelectronics MEMS sensors
    may be sneakily enabled by cleverly giving the device node the same
    name as a string match from the platform device ID table. However
    the right method is to use the compatible string.

    On detection, the ST sensors use the ID string to probe and
    instatiate the right sensor driver, so pass the kernel-internal ID
    string in the .data field of the OF match table, and set the I2C
    client name to this name when a compatible match is used.

    This avoids having misc Linux-specific strings floating around in
    the device tree.

    Cc: Lee Jones
    Cc: Denis CIOCCA
    Signed-off-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    Linus Walleij
     

07 Jul, 2014

1 commit


05 Jul, 2014

1 commit

  • IIO_CHAN_INFO_SAMP_FREQ and IIO_CHAN_INFO_HYSTERESIS cases ignored
    the actual return values (which could be -EINVAL) and instead
    returned IIO_VAL_INT_PLUS_MICRO always. Return the actual value
    obtained from the functions. Both functions return IIO_VAL_INT_PLUS_MICRO
    upon success.

    Signed-off-by: Sachin Kamat
    Cc: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Sachin Kamat
     

30 Jun, 2014

1 commit

  • …/iio into staging-next

    Jonathan writes:

    Second round of new drivers and cleanups for IIO in the 3.17 cycle.

    New drivers
    * mcp4902, mcp4912 and mcp4922 SPI DAC driver.
    * max1027, max1029 and max1031 SPI ADC driver.

    Cleanups
    * cm32181 - use devm APIs to simplify error paths.
    * ak8975 - use devm APIs to simplify error paths.
    * ad9850 - drop some unused defines and an unnecessary goto.
    * hmc5843 - add missing devices to the device id table and the documentation.
    * ad9832 - small formatting cleanups.
    * sca3000 - hide direct use of the stufftoread element by adding a
    data_available function. This is a precursor for the addition of buffer
    watermarks to the subsystem but stands as a good cleanup on its own.

    Greg Kroah-Hartman
     

29 Jun, 2014

1 commit


23 Jun, 2014

1 commit


19 Jun, 2014

1 commit

  • …/jic23/iio into staging-linus

    Jonathan writes:

    First set of IIO fixes for the 3.16 cycle.

    A mixed bag of fixes, many of which feel just to late for 3.15.

    * hid sensors - some devices need a feature report request in order to
    change power state. This isn't part of the spec, but has been observed
    on several devices and does no harm to others.
    * mpl3115 has had two errors in the buffer description fixed. The presure is
    signed, not unsigned and the temperature has 12 bits rather than 16.
    These could lead to incorrect interpretation of the data in userspace.
    * tsl2x7x - the high byte of the proximity thresholds should be written along
    with the low byte (which was). This could lead to interesting results
    with large thresholds.
    * twl4030 - a flag to specify processed values were required was not set
    when initializing a reading. As such values returned were in an unknown
    state. Fixed by simply initializing it appropriately.
    * IIO_SIMPLE_DUMMY_BUFFER did not select IIO_BUFFER leading to randconfig
    build errors.
    * ak8975 was applying an unwanted le16_to_cpu conversion as the i2c framework
    already performs one. As such for big endian systems, the bytes would be
    in the wrong order in the magnetic field measurements reported.
    * mxs-lradc - the controllable voltage dividers were not enabled / disabled for
    later channels than the first one during conversion.
    * at91_adc error handling returned -ENOMEM in a u8. Return value of
    at91_adc_get_trigger_value_by_name changed to int thus allowing -ENOMEM and
    also original values to be returned.
    * mcb - mcb_request_mem returns and ERR_PTR but the caller was checking for
    NULL to detect an error.

    Greg Kroah-Hartman
     

17 Jun, 2014

1 commit

  • Added IIO magnetometer driver for AK09911. In functionality is resembles
    AK8975 or AK8963. But there are several differences, so instead of
    modifying existing AK8975 driver and keep it clean, implemented as
    a separate driver.
    The key differences are:
    - Register map is different and have different indexes
    - AK09911 is a very compact interface with no DRDY pin. So no support
    of interrupt or GPIO poll
    - Even for polled mode no mention on ST2 register, which is required in
    ak8975 driver
    - mode values are different for fuse access

    Signed-off-by: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Srinivas Pandruvada
     

07 Jun, 2014

1 commit


05 May, 2014

3 commits


03 May, 2014

3 commits


26 Apr, 2014

2 commits

  • Currently the pressure sensor has code to retrieve and enable two
    regulators for Vdd and Vdd IO, but actually these voltage inputs
    are found on all of these ST sensors, so move the regulator
    handling to the core and make sure all the ST sensors call these
    functions on probe() and remove() to enable/disable power.

    Here also mover over to obtaining the regulator from the *parent*
    device of the IIO device, as the IIO device is created on-the-fly
    in this very subsystem it very unlikely evert have any regulators
    attached to it whatsoever. It is much more likely that the parent
    is a platform device, possibly instantiated from a device tree,
    which in turn have Vdd and Vdd IO supplied assigned to it.

    Cc: Lee Jones
    Cc: Denis CIOCCA
    Signed-off-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    Linus Walleij
     
  • It is pretty helpful to know already from dmesg that a certain
    device is successfully registered, instead of having to browse
    sysfs to see if it's actually there.

    Cc: Lee Jones
    Cc: Denis CIOCCA
    Signed-off-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    Linus Walleij
     

29 Mar, 2014

1 commit


22 Mar, 2014

1 commit


26 Feb, 2014

1 commit

  • drivers/iio/magnetometer/mag3110.c:197 mag3110_read_raw()
    info: ignoring unreachable code.

    drivers/iio/magnetometer/mag3110.c
    185 case IIO_CHAN_INFO_SCALE:
    186 switch (chan->type) {
    187 case IIO_MAGN:
    188 *val = 0;
    189 *val2 = 1000;
    190 return IIO_VAL_INT_PLUS_MICRO;
    191 case IIO_TEMP:
    192 *val = 1000;
    193 return IIO_VAL_INT;
    194 default:
    195 return -EINVAL;
    196 }
    197 return IIO_VAL_INT_PLUS_MICRO;
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    introduced by f9279d3a, mag3110: Scale factor missing

    Signed-off-by: Peter Meerwald
    Reported-by: Dan Carpenter
    Signed-off-by: Jonathan Cameron

    Peter Meerwald
     

15 Feb, 2014

1 commit


12 Feb, 2014

1 commit

  • …/iio into staging-next

    Jonathan writes:

    First set of new drivers and cleanups for IIO in the 3.15 cycle.

    New drivers:
    * si7005 relative humidity and temperature sensor
    * Lite-on ltr501 ambient light and proximity sensor

    Cleanups
    * Clean up some dead comments in max1363
    * Drop some obsolete variables in adjd_s311 and tcs3472 left over from
    the introduction of iio_push_to_buffers_with_timestamp.
    * Drop some unneeded linux/init.h includes
    * Squish a sparse warning in mpl3115 by correctly specifying a be32 variable.
    * A number of cleanups and fixes for sca3000
    * Drop an unneed checks in mxs-lradc, ad7303 and adis16400.
    * Drop a platform_set_drvdata in viperboard after the only use of it was
    removed during a devm conversion.
    * Add a missing device name for ak8975 to comply with the ABI.
    * Put mpu6050 into the IMU menu as it slipped out into the main menu.
    * Fix a typo and some comment formatting in mpu6050.
    * Document at91 ADC clock properties.

    Greg Kroah-Hartman
     

08 Feb, 2014

4 commits


18 Dec, 2013

1 commit


03 Dec, 2013

1 commit


09 Nov, 2013

3 commits