1. 14 Sep, 2014 1 commit
  2. 26 Aug, 2014 2 commits
  3. 11 Jul, 2014 1 commit
    • Linus Walleij's avatar
      iio: st_sensors: add devicetree probing support · 2d7768a8
      Linus Walleij authored
      
      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 <lee.jones@linaro.org>
      Cc: Denis CIOCCA <denis.ciocca@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      2d7768a8
  4. 07 Jul, 2014 3 commits
  5. 05 Jul, 2014 1 commit
  6. 05 May, 2014 3 commits
  7. 26 Apr, 2014 2 commits
    • Linus Walleij's avatar
      iio: st_sensors: move regulator retrieveal to core · ea7e586b
      Linus Walleij authored
      
      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 <lee.jones@linaro.org>
      Cc: Denis CIOCCA <denis.ciocca@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      ea7e586b
    • Linus Walleij's avatar
      iio: st_sensors: announce registered sensors · 4f544ced
      Linus Walleij authored
      
      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 <lee.jones@linaro.org>
      Cc: Denis CIOCCA <denis.ciocca@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      4f544ced
  8. 16 Mar, 2014 1 commit
  9. 18 Feb, 2014 1 commit
  10. 24 Nov, 2013 2 commits
  11. 05 Nov, 2013 1 commit
  12. 02 Nov, 2013 1 commit
  13. 16 Oct, 2013 1 commit
  14. 05 Oct, 2013 3 commits
  15. 21 Sep, 2013 3 commits
  16. 15 Sep, 2013 1 commit
  17. 14 Sep, 2013 3 commits
  18. 19 Aug, 2013 1 commit
  19. 17 Aug, 2013 8 commits
  20. 03 Aug, 2013 1 commit