lkml.org 
[lkml]   [2012]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] extcon : register for cable interest by cable name
> 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@intel.com>
> ---
[]
> +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
\
 
 \ /
  Last update: 2012-10-10 09:21    [W:0.331 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site