From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754042AbcK1Ci1 (ORCPT ); Sun, 27 Nov 2016 21:38:27 -0500 Received: from mail-qk0-f172.google.com ([209.85.220.172]:33447 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753805AbcK1CiG (ORCPT ); Sun, 27 Nov 2016 21:38:06 -0500 From: Peter Foley To: linux-kernel@vger.kernel.org, myungjoo.ham@samsung.com, cw00.choi@samsung.com Cc: Peter Foley Subject: [PATCH] drivers/extcon: Fix incompatible pointer type warning Date: Sun, 27 Nov 2016 21:37:20 -0500 Message-Id: <20161128023720.16666-1-pefoley2@pefoley.com> X-Mailer: git-send-email 2.11.0.rc2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC [M] drivers/extcon/extcon-adc-jack.o ../drivers/extcon/extcon-adc-jack.c:115:52: error: incompatible pointer types passing 'const enum extcon *' to parameter of type 'const unsigned int *' [-Werror,-Wincompatible-pointer-types] data->edev = devm_extcon_dev_allocate(&pdev->dev, pdata->cable_names); ^~~~~~~~~~~~~~~~~~ ../include/linux/extcon.h:240:30: note: passing argument to parameter 'cable' here const unsigned int *cable); ^ 1 error generated. Signed-off-by: Peter Foley --- include/linux/extcon/extcon-adc-jack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/extcon/extcon-adc-jack.h b/include/linux/extcon/extcon-adc-jack.h index a0e03b13b449..2aa32075bca1 100644 --- a/include/linux/extcon/extcon-adc-jack.h +++ b/include/linux/extcon/extcon-adc-jack.h @@ -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; -- 2.11.0.rc2