From: Peter Foley <pefoley2@pefoley.com>
To: linux-kernel@vger.kernel.org, myungjoo.ham@samsung.com,
cw00.choi@samsung.com
Cc: Peter Foley <pefoley2@pefoley.com>
Subject: [PATCH] drivers/extcon: Fix incompatible pointer type warning
Date: Sun, 27 Nov 2016 21:37:20 -0500 [thread overview]
Message-ID: <20161128023720.16666-1-pefoley2@pefoley.com> (raw)
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 <pefoley2@pefoley.com>
---
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
next reply other threads:[~2016-11-28 2:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20161128023736epcas2p449756cd8c14670b4debcecd872d529ee@epcas2p4.samsung.com>
2016-11-28 2:37 ` Peter Foley [this message]
2016-11-29 9:42 ` Chanwoo Choi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161128023720.16666-1-pefoley2@pefoley.com \
--to=pefoley2@pefoley.com \
--cc=cw00.choi@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome