Just to make it a bit easier to read on a glance.
Signed-off-by: Peter Hutterer <[email protected]>
---
src/wcmISDV4.c | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/wcmISDV4.c b/src/wcmISDV4.c
index ea33c18..d65a533 100644
--- a/src/wcmISDV4.c
+++ b/src/wcmISDV4.c
@@ -857,14 +857,13 @@ static int isdv4ProbeKeys(LocalDevicePtr local)
* at later stage and true knowledge of capacitive
* support will be delayed until that point.
*/
- if (id >= 0x0 && id <= 0x7)
- tablet_id = 0x90;
- else if (id >= 0x8 && id <= 0xa)
- tablet_id = 0x93;
- else if (id >= 0xb && id <= 0xe)
- tablet_id = 0xe3;
- else if (id == 0x10)
- tablet_id = 0xe2;
+ switch(id)
+ {
+ case 0x0 ... 0x7: tablet_id = 0x90; break;
+ case 0x8 ... 0xa: tablet_id = 0x93; break;
+ case 0xb ... 0xe: tablet_id = 0xe3; break;
+ case 0x10: tablet_id = 0xe2; break;
+ }
return tablet_id;
}
--
1.7.1
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel