extcon: adc-jack: Fix incompatible pointer type warning
authorPeter Foley <pefoley2@pefoley.com>
Mon, 28 Nov 2016 02:37:20 +0000 (21:37 -0500)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Jan 2017 01:04:09 +0000 (10:04 +0900)
This patch fixes the incompatible warning of extcon-adc-jack.c driver
when calling devm_extcon_dev_allocate().

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
[cw00.choi: Modify the patch title and descritpion]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/linux/extcon/extcon-adc-jack.h

index a0e03b1..2aa3207 100644 (file)
@@ -59,7 +59,7 @@ struct adc_jack_pdata {
        const char *name;
        const char *consumer_channel;
 
-       const enum extcon *cable_names;
+       const unsigned int *cable_names;
 
        /* The last entry's state should be 0 */
        struct adc_jack_cond *adc_conditions;