Re: [PATCH] extcon : register for cable interest by cable name

From: MyungJoo Ham
Date: Wed Oct 10 2012 - 02:52:27 EST


> There are some scnearios where a driver/framework needs to register
> interest for a particular cable without specifying the extcon device
> name. One such scenario is charger notifications. The platform will
> have charger cabel which will be bound to any extcon device. It's
> not mandatory for the charger driver to know which extcon device
> it should use. This patch enables the support for registering
> interest for a cable just by cable name wihtout specifying the
> extcon device name
>
> Signed-off-by: Jenny TC <jenny.tc@xxxxxxxxx>
> ---
[]
> +extern struct extcon_dev *register_interest_cable_byname
> + (struct extcon_specific_cable_nb *extcon_dev,
> + const char *cable_name, struct notifier_block *nb);

What about allowing extcon_register_interest() to support the functionality?

I.e., allowing extcon_register_interest() to accept NULL extcon_name.


ps. anyway, usually, the "platforms" have the list of node paths, don't they?

Cheers!
MyungJoo
?移»®&Þ~º&¶¬–+-깁負¥Šw®왢쎉喝méb욎dz받–)í끾èw*jgП¨¶‰šŽ듶¢j/곴äz받–듺2듷솳鈺Ú&¢)傘«a뛴®G«앶h®æj:+v돣Šwè녪¥>W슧違iÛaxPjØm¶Ÿÿà -»+껠dš_