[OpenWrt-Devel] [PATCHv3 2/3] [package] gpio-button-hotplug: Add a "mode" event

John Crispin blogic at openwrt.org
Fri Oct 3 16:09:41 EDT 2014


have a look at FONER20N.dts

switch {
	label = "switch";
	gpios = <&gpio0 13 1>;
	linux,code = <0xf7>;
	linux,input-type = <5>; /* EV_SW */
};

that would obsolete 2 and you need to change 3. i have merged 1 into
my tree.

On 17/09/2014 10:22, Russell Senior wrote:
> 
> diff --git
> a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
> b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 
> index c997e35..891dd96 100644 ---
> a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c +++
> b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c @@
> -97,6 +97,7 @@ static struct bh_map button_map[] = { 
> BH_MAP(KEY_RFKILL,	"rfkill"), BH_MAP(KEY_WPS_BUTTON,	"wps"), 
> BH_MAP(KEY_WIMAX,	"wwan"), +	BH_MAP(BTN_MODE,	"mode"), };
> 
> /*
> -------------------------------------------------------------------------*/
>
> 
-- 
> 2.0.0
> 
> Hmm.
> 
> If we used KEY_M here instead of horribly abusing BTN_MODE, the
> third patch would be unnecessary.
> 
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list