Anything against a new EV_SW SW_RADIO event ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dmitry,

Could you ACK the attached patch?  I am about to send in code that would
benefit a damn great deal from it (thinkpad-acpi support for the
T60/X60/newer radio-kill slider switch)...  So I thought it would be best to
check with you first if I can have an EV_SW SW_RADIO...

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

commit f5752eca1ffed72ce32c42f15b16cb4d240901c1
Author: Henrique de Moraes Holschuh <hmh@xxxxxxxxxx>
Date:   Sat Jun 23 23:55:22 2007 -0300

    INPUT: add a new EV_SW SW_RADIO event, for radio switches on laptops
    
    Many laptops have rf-kill physical switches that are not keys, but slider
    or rocker switches.  Often (like in all ThinkPads with a radio kill slider
    switch), they have both a slider/rocker switch and a hot key.
    
    Trying to kludge a real switch to act like a key is not a very smart thing
    to do if you can help it, and it gets specially bad when you are going to
    have both in the same machine.  So, we do the right thing and add an input
    EV_SW event for radio kill switches.
    
    The EV_SW SW_RADIO event is defined with positive logic, i.e. when the
    switch is active, the radios are to be enabled.  When the switch is
    inactive, the radios are to be disabled.
    
    Signed-off-by: Henrique de Moraes Holschuh <hmh@xxxxxxxxxx>
    Cc: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
    Cc: Ivo van Doorn <ivdoorn@xxxxxxxxx>
    Cc: Richard Hughes <hughsient@xxxxxxxxx>

diff --git a/include/linux/input.h b/include/linux/input.h
index bde65c8..b530678 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -602,6 +602,7 @@ struct input_absinfo {
 #define SW_LID			0x00  /* set = lid shut */
 #define SW_TABLET_MODE		0x01  /* set = tablet mode */
 #define SW_HEADPHONE_INSERT	0x02  /* set = inserted */
+#define SW_RADIO		0x03  /* set = radio enabled */
 #define SW_MAX			0x0f
 
 /*

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux