Skip to content
  • Arnd Bergmann's avatar
    power: supply: axp20x_usb_power: add IIO dependency · 6254a6a9
    Arnd Bergmann authored
    When CONFIG_IIO=m and the axp20x_usb_power driver is built-in, we get
    a link time error:
    
    drivers/power/built-in.o: In function `axp20x_usb_power_get_property':
    undefined reference to `iio_read_channel_processed'
    drivers/power/built-in.o: In function `axp20x_usb_power_probe':
    undefined reference to `devm_iio_channel_get'
    undefined reference to `devm_iio_channel_get'
    
    This adds the same dependency that we already have for the AC power driver
    to the USB power driver. For consistency, I'm also moving the two closer
    together in the Kconfig file.
    
    Fixes: 33863c93
    
     ("power: supply: axp20x_usb_power: use IIO channels when available")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
    6254a6a9