• Samuel Ortiz's avatar
    NFC: nxp-nci: Fix build warning · 262e7198
    Samuel Ortiz authored
    When GPIO is not enabled we hit this kind of warning:
    
       drivers/nfc/nxp-nci/i2c.c: In function 'nxp_nci_i2c_acpi_config':
       drivers/nfc/nxp-nci/i2c.c:320:2: error: implicit declaration of function 'devm_gpiod_get_index' [-Werror=implicit-function-declaration]
         gpiod_en = devm_gpiod_get_index(&client->dev, NULL, 2);
    
    This is fixed by explicitely including gpio/consumer.h.
    Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
    262e7198
i2c.c 10.7 KB