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

Russell Senior russell at personaltelco.net
Wed Sep 17 04:22:22 EDT 2014


  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.


-- 
Russell Senior, President
russell at personaltelco.net
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



-- 
Russell Senior, President
russell at personaltelco.net
_______________________________________________
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