1. 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
  2. 23 Apr, 2014 1 commit
  3. 12 Apr, 2014 3 commits
  4. 11 Apr, 2014 1 commit
  5. 07 Apr, 2014 6 commits
  6. 29 Mar, 2014 2 commits
    • Srinivas Pandruvada's avatar
      iio: imu: inv_mpu6050: Add compatibity with MPU6500 · 6f174fd3
      Srinivas Pandruvada authored
      Adding MPU6500 in target list for this driver.
      
      Description:
      Source
      Document: MPU-6500 Register Map and Descriptions Revision 2.1
      Section 3: Register Map
      
      This section describes difference in terms device programmability
      between MPU6050 and MPU6500.
      These are different registers, which differs between MPU6050 and
      MPU6500.
      
      Addr	Name
      ---------------------
      1E 	LP_ACCEL_ODR
      6C	PWR_MGMT_2
      77	XA_OFFSET_H
      78	XA_OFFSET_L
      7A	YA_OFFSET_H
      7B	YA_OFFSET_L
      7D	ZA_OFFSET_H
      7E	ZA_OFFSET_L
      
      But the current MPU6050 driver doesn't use registers which are different
      except PWR_MGMT_2. The difference is support of "LP_WAKE_CTRL" at bit6-7
      in MPU6050 mode. In MPU6500 they are not defined.
      In current mpu6050 driver, only values used for this register are for
      standby mode for gyro and accelerometer.
      In both case frequency of wakeups is set to default and not using
      bit 6-7.
      
      So this driver van as well support MPU6500. In addition MPU6500 can
      run MPU6050 mode by changing device trim settings.
      
      So changing config comments to allow MPU6500 to use this driver.
      When the driver is enhanced to support more functions, i2c driver
      data INV_MPU6500 or "WHO_AM_I" register can be used to add additional
      functionality.
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      6f174fd3
    • Srinivas Pandruvada's avatar
      iio: ak8975: Added ACPI enumeration · d913971e
      Srinivas Pandruvada authored
      Added capability so that this device can be enumerated via ACPI.
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      d913971e
  7. 22 Mar, 2014 1 commit
  8. 16 Mar, 2014 8 commits
  9. 15 Mar, 2014 2 commits
  10. 14 Mar, 2014 10 commits
  11. 13 Mar, 2014 4 commits
    • Elena Oat's avatar
      Staging: rtl8188eu: Fix sparse warnings. · 160eaf20
      Elena Oat authored
      This patch fixes following warnings produced by sparse:
      
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3867:31:    expected void
      const *<noident>
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3867:31:    got void
      [noderef] <asn:1>*pointer
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3869:38: warning:
      incorrect type in argument 1 (different address spaces)
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3869:38:    expected void
      const *<noident>
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3869:38:    got void
      [noderef] <asn:1>*pointer
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3871:38: warning:
      incorrect type in argument 1 (different address spaces)
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3871:38:    expected void
      const *<noident>
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3871:38:    got void
      [noderef] <asn:1>*pointer
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3873:38: warning:
      incorrect type in argument 1 (different address spaces)
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3873:38:    expected void
      const *<noident>
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3873:38:    got void
      [noderef] <asn:1>*pointer
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3875:38: warning:
      incorrect type in argument 1 (different address spaces)
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3875:38:    expected void
      const *<noident>
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3875:38:    got void
      [noderef] <asn:1>*pointer
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3878:38: warning:
      incorrect type in argument 1 (different address spaces)
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3878:38:    expected void
      const *<noident>
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3878:38:    got void
      [noderef] <asn:1>*pointer
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3880:38: warning:
      incorrect type in argument 1 (different address spaces)
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3880:38:    expected void
      const *<noident>
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3880:38:    got void
      [noderef] <asn:1>*pointer
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3883:38: warning:
      incorrect type in argument 1 (different address spaces)
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3883:38:    expected void const *<noident>
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3883:38:    got void
      [noderef] <asn:1>*pointer
      drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3897:9: warning: cast
      removes address space of expression
      
      While at it, I have also fixed the warnings of lines over 80 characters.
      Signed-off-by: default avatarElena Oat <oat.elena@gmail.com>
      Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
      160eaf20
    • Gulsah Kose's avatar
      staging: rtl8712: Remove unnecessary parentheses. · 34a2c5fe
      Gulsah Kose authored
      Remove unnecessary parentheses from rtl871x_cmd.c
      Signed-off-by: default avatarGulsah Kose <gulsah.1004@gmail.com>
      Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
      34a2c5fe
    • Iulia Manda's avatar
      staging: unisys: visorutil: Use kzalloc instead of kmalloc with memset · 56116b2b
      Iulia Manda authored
      Fix coccinelle warnings of better allocation by using kzalloc.
      In these cases, kzalloc is preferred, as kmalloc may fail if it does not find
      contiguous memory.
      Signed-off-by: default avatarIulia Manda <iulia.manda21@gmail.com>
      Acked-by: default avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
      Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
      56116b2b
    • Iulia Manda's avatar
      staging: android: ion: Use ERR_CAST instead of ERR_PTR · 464a5028
      Iulia Manda authored
      Fix the following coccinelle warnings in ion.c:
      drivers/staging/android/ion/ion.c:511:9-16: WARNING: ERR_CAST can be used with buffer
      drivers/staging/android/ion/ion.c:218:9-16: WARNING: ERR_CAST can be used with table
      drivers/staging/android/ion/ion.c:1150:9-16: WARNING: ERR_CAST can be used with dmabuf
      Signed-off-by: default avatarIulia Manda <iulia.manda21@gmail.com>
      Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
      464a5028