1. 08 Nov, 2016 2 commits
    • Arnd Bergmann's avatar
      staging: iio: tsl2583: fix unused function warning · c266cda2
      Arnd Bergmann authored
      Removing a call to the taos_chip_off() makes it unused when CONFIG_PM
      is disabled:
      
      drivers/staging/iio/light/tsl2583.c:438:12: error: ‘taos_chip_off’ defined but not used [-Werror=unused-function]
      
      This removes all the #ifdef in this file, and marks the PM functions as
      __maybe_unused instead, which is more reliable and gives us better
      compile time coverage.
      
      Fixes: 0561155f ("staging: iio: tsl2583: don't shutdown chip when updating the lux table")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      c266cda2
    • Arnd Bergmann's avatar
      staging: iio: ad9832: allocate data before using · 6826fdbd
      Arnd Bergmann authored
      The regulator changes assigned data to an uninitialized pointer:
      
      drivers/staging/iio/frequency/ad9832.c: In function 'ad9832_probe':
      drivers/staging/iio/frequency/ad9832.c:214:11: error: 'st' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      This moves the allocation of the 'st' structure before its first
      use, as it should have been.
      
      Fixes: 43a07e48 ("staging: iio: ad9832: clean-up regulator 'reg'")
      Fixes: a98461d7 ("staging: iio: ad9832: add DVDD regulator")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      6826fdbd
  2. 07 Nov, 2016 38 commits