[OpenWrt-Devel] [PATCH 1/2] ralink: add FireWRT power button

Rafał Miłecki zajec5 at gmail.com
Sat Mar 21 19:31:34 EDT 2015


On 21 March 2015 at 23:18, John Crispin <blogic at openwrt.org> wrote:
>
>
> On 21/03/2015 23:15, Rafał Miłecki wrote:
>> On 21 March 2015 at 06:06, wengbj <fl.service at t-firefly.com> wrote:
>>> Signed-off-by: wengbj <fl.service at t-firefly.com>
>>> ---
>>>  target/linux/ramips/dts/FIREWRT.dts |    5 +++++
>>>  1 file changed, 5 insertions(+)
>>>
>>> diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts
>>> index 54f0e55..2b018e6 100644
>>> --- a/target/linux/ramips/dts/FIREWRT.dts
>>> +++ b/target/linux/ramips/dts/FIREWRT.dts
>>> @@ -103,6 +103,11 @@
>>>                         gpios = <&gpio0 18 1>;
>>>                         linux,code = <0x211>;
>>>                 };
>>> +               power {
>>> +                       label = "power";
>>> +                       gpios = <&gpio0 23 1>;
>>> +                       linux,code = <116>;
>>> +               };
>>
>> Could you break this bad habit and use KEY_* instead of magic numbers?
>> Like a KEY_POWER.
>>
>
> sure but this is out of scope of this patch and needs to be done
> globally for all dts files in the ralink target.

I don't mean changing any existing entry, just the one that was
suggested to be added.

I think it's OK to add it in a correct & nice form?

-- 
Rafał
_______________________________________________
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