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@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel