• Linus Walleij's avatar
    hwmon: (sht15) Root out platform data · 18673114
    Linus Walleij authored
    After finding out there are active users of this sensor I noticed:
    
    - It has a single PXA27x board file using the platform data
    - The platform data is only used to carry two GPIO pins, all other
      fields are unused
    - The driver does not use GPIO descriptors but the legacy GPIO
      API
    
    I saw we can swiftly fix this by:
    
    - Killing off the platform data entirely
    - Define a GPIO descriptor lookup table in the board file
    - Use the standard devm_gpiod_get() to grab the GPIO descriptors
      from either the device tree or the board file table.
    
    This compiles, but needs testing.
    
    Cc: arm@kernel.org
    Cc: Marco Franchi <marco.franchi@nxp.com>
    Cc: Davide Hug <d@videhug.ch>
    Cc: Jonathan Cameron <jic23@cam.ac.uk>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
    Tested-by: default avatarMarco Franchi <marco.franchi@nxp.com>
    Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    18673114
sht15 2.17 KB