From: MyungJoo Ham <myungjoo.ham@samsung.com>
To: "anish kumar" <anish198519851985@gmail.com>, 최찬우 <cw00.choi@samsung.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] [1/2]extcon: standard cable names definition and declaration changed
Date: Fri, 31 Aug 2012 07:55:52 +0000 (GMT) [thread overview]
Message-ID: <26422216.93141346399752014.JavaMail.weblogic@epml19> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=euc-kr, Size: 1948 bytes --]
> From: anish kumar <anish198519851985@gmail.com>
>
> With this change now individual drivers can use standard cable
> names as below:
> static const char *arizona_cable[] = {
> extcon_cable_name[EXTCON_USB],
> extcon_cable_name[EXTCON_USB_HOST],
> "CUSTOM_CABLE"
> NULL,
> }
>
> Signed-off-by: anish kumar <anish198519851985@gmail.com>
Looks good.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
> ---
> drivers/extcon/extcon-class.c | 4 +---
> include/linux/extcon.h | 2 +-
> 2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/extcon/extcon-class.c b/drivers/extcon/extcon-class.c
> index 481cfa0..e09a6c3 100644
> --- a/drivers/extcon/extcon-class.c
> +++ b/drivers/extcon/extcon-class.c
> @@ -41,7 +41,7 @@
> * every single port-type of the following cable names. Please choose cable
> * names that are actually used in your extcon device.
> */
> -const char *extcon_cable_name[] = {
> +const char extcon_cable_name[][CABLE_NAME_MAX + 1] = {
> [EXTCON_USB] = "USB",
> [EXTCON_USB_HOST] = "USB-Host",
> [EXTCON_TA] = "TA",
> @@ -62,8 +62,6 @@ const char *extcon_cable_name[] = {
> [EXTCON_VIDEO_IN] = "Video-in",
> [EXTCON_VIDEO_OUT] = "Video-out",
> [EXTCON_MECHANICAL] = "Mechanical",
> -
> - NULL,
> };
>
> static struct class *extcon_class;
> diff --git a/include/linux/extcon.h b/include/linux/extcon.h
> index cdd4014..96b5450 100644
> --- a/include/linux/extcon.h
> +++ b/include/linux/extcon.h
> @@ -68,7 +68,7 @@ enum extcon_cable_name {
> EXTCON_VIDEO_OUT,
> EXTCON_MECHANICAL,
> };
> -extern const char *extcon_cable_name[];
> +extern const char extcon_cable_name[][CABLE_NAME_MAX + 1];
>
> struct extcon_cable;
>
> --
> 1.7.1
>
>
>
>
>
>
>
> A
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
next reply other threads:[~2012-08-31 7:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-31 7:55 MyungJoo Ham [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-08-29 19:05 [PATCH 1/2] [1/2]extcon: standard cable names definition and declaration changed anish kumar
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=26422216.93141346399752014.JavaMail.weblogic@epml19 \
--to=myungjoo.ham@samsung.com \
--cc=anish198519851985@gmail.com \
--cc=cw00.choi@samsung.com \
--cc=linux-kernel@vger.kernel.org \
/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