Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added verbose fix for failing to match SEED_STUDIOS vendor ID

  • Loading branch information...
commit 9be44120a493a0c25407d553b32e5f7a4cd97d70 1 parent 4e0dbcd
Far McKon authored haveahennessy committed

Showing 1 changed file with 19 additions and 3 deletions. Show diff stats Hide diff stats

  1. +19 3 drivers/bmi/pims/bugduino/bmi_bugduino.c
22 drivers/bmi/pims/bugduino/bmi_bugduino.c
@@ -59,15 +59,31 @@ static struct bmi_bugduino bmi_bugduino_collection[4];
59 59 static int major;
60 60
61 61 static struct bmi_device_id duino_table[] = {
62   - //TRICKY: this can have a BUG_LABS or A SEED_STUDIO vendor as a valid id, just match device.
  62 + //HACK: maching SEED_STUDIO vendor is failing, this verbose
  63 + //workaround works. TODO: cleanup and simplify
63 64 {
  65 + .match_flags = BMI_DEVICE_ID_MATCH_PRODUCT,
  66 + .vendor = BMI_VENDOR_BUG_LABS, //VENDOR_SEED_STUDIO is also valid
  67 + .product = BMI_PRODUCT_BUGDUINO,
  68 + .revision = BMI_ANY,
  69 + },
  70 +{
64 71 .match_flags = BMI_DEVICE_ID_MATCH_VENDOR | BMI_DEVICE_ID_MATCH_PRODUCT,
65 72 .vendor = BMI_VENDOR_BUG_LABS,
66   - //.match_flags = BMI_DEVICE_ID_MATCH_PRODUCT,
67   - //.vendor = BMI_VENDOR_BUG_LABS,
  73 + .product = BMI_PRODUCT_BUGDUINO,
  74 + .revision = BMI_ANY,
  75 + },{
  76 + .match_flags = BMI_DEVICE_ID_MATCH_VENDOR | BMI_DEVICE_ID_MATCH_PRODUCT,
  77 + .vendor = BMI_VENDOR_SEED_STUDIO,
68 78 .product = BMI_PRODUCT_BUGDUINO,
69 79 .revision = BMI_ANY,
70 80 },
  81 +/* {
  82 + .match_flags = BMI_DEVICE_ID_MATCH_VENDOR | BMI_DEVICE_ID_MATCH_PRODUCT,
  83 + .vendor = BMI_VENDOR_SEED_STUDIO,
  84 + .product = BMI_PRODUCT_BUGDUINO,
  85 + .revision = BMI_ANY,
  86 + },*/
71 87 { 0,},
72 88 };
73 89

0 comments on commit 9be4412

Please sign in to comment.
Something went wrong with that request. Please try again.