summaryrefslogtreecommitdiff
path: root/recipes/librfid/files/spidev.patch
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-03-19 20:56:09 +0100
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-03-19 20:56:09 +0100
commit6a21d65d2840c58cfa7cd749a04669d8f7980646 (patch)
tree00b1aa153b69cda8cf9406c4700fd7730c34d3a5 /recipes/librfid/files/spidev.patch
parentdcfe7349b369a87881cf1fa43085d9e9c5609fcf (diff)
parent6f854d71c347475d53d5080a5490625345d95d12 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/librfid/files/spidev.patch')
-rw-r--r--recipes/librfid/files/spidev.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/librfid/files/spidev.patch b/recipes/librfid/files/spidev.patch
new file mode 100644
index 0000000000..29c3a171ea
--- /dev/null
+++ b/recipes/librfid/files/spidev.patch
@@ -0,0 +1,24 @@
+Index: librfid-0.2.0/utils/common.c
+===================================================================
+--- librfid-0.2.0.orig/utils/common.c
++++ librfid-0.2.0/utils/common.c
+@@ -72,15 +72,11 @@ struct rfid_protocol_handle *ph;
+
+ int reader_init(void)
+ {
+- printf("opening reader handle OpenPCD, CM5x21\n");
+- rh = rfid_reader_open(NULL, RFID_READER_OPENPCD);
++ printf("opening reader handle SPIDEV\n");
++ rh = rfid_reader_open("/dev/spidev", RFID_READER_SPIDEV);
+ if (!rh) {
+- fprintf(stderr, "No OpenPCD found\n");
+- rh = rfid_reader_open(NULL, RFID_READER_CM5121);
+- if (!rh) {
+- fprintf(stderr, "No Omnikey Cardman 5x21 found\n");
+- return -1;
+- }
++ fprintf(stderr, "No spidev RFID found\n");
++ return -1;
+ }
+ return 0;
+ }