lkml.org 
[lkml]   [2012]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v8 1/6] Extcon (external connector): import Android's switch class and modify.
On Thu, Apr 19, 2012 at 11:41:33AM +0900, MyungJoo Ham wrote:
> External connector class (extcon) is based on and an extension of
> Android kernel's switch class located at linux/drivers/switch/.

Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

> +comment "Extcon Class Configuration"
> +
> +config EXTCON_ANDROID_COMPATIBLE
> + bool "Class name uses 'switch' to be compatible with Android kernel"
> + depends on ANDROID
> + help
> + The class name of extcon device drivers are set 'switch' in order
> + to be compatible with Android kernel switch framework. With this
> + option enabled, Android userspace platform may use extcon device
> + drivers as if they are switch device drivers.

Though I think this is out of date now? Not a big deal and could be
fixed up later.

> +#if defined(CONFIG_ANDROID) && !defined(CONFIG_ANDROID_SWITCH)
> + switch_class = class_compat_register("switch");
> + if (WARN(!switch_class, "cannot allocate"))
> + return -ENOMEM;
> +#endif /* CONFIG_ANDROID && !defined(CONFIG_ANDROID_SWITCH) */

This does the above but differently.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-04-19 13:41    [W:0.103 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site