Skip to content

Commit

Permalink
added verbose fix for failing to match SEED_STUDIOS vendor ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Far McKon authored and haveahennessy committed Jul 12, 2011
1 parent 4e0dbcd commit 9be4412
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions drivers/bmi/pims/bugduino/bmi_bugduino.c
Expand Up @@ -59,15 +59,31 @@ static struct bmi_bugduino bmi_bugduino_collection[4];
static int major;

static struct bmi_device_id duino_table[] = {
//TRICKY: this can have a BUG_LABS or A SEED_STUDIO vendor as a valid id, just match device.
//HACK: maching SEED_STUDIO vendor is failing, this verbose
//workaround works. TODO: cleanup and simplify
{
.match_flags = BMI_DEVICE_ID_MATCH_PRODUCT,
.vendor = BMI_VENDOR_BUG_LABS, //VENDOR_SEED_STUDIO is also valid
.product = BMI_PRODUCT_BUGDUINO,
.revision = BMI_ANY,
},
{
.match_flags = BMI_DEVICE_ID_MATCH_VENDOR | BMI_DEVICE_ID_MATCH_PRODUCT,
.vendor = BMI_VENDOR_BUG_LABS,
//.match_flags = BMI_DEVICE_ID_MATCH_PRODUCT,
//.vendor = BMI_VENDOR_BUG_LABS,
.product = BMI_PRODUCT_BUGDUINO,
.revision = BMI_ANY,
},{
.match_flags = BMI_DEVICE_ID_MATCH_VENDOR | BMI_DEVICE_ID_MATCH_PRODUCT,
.vendor = BMI_VENDOR_SEED_STUDIO,
.product = BMI_PRODUCT_BUGDUINO,
.revision = BMI_ANY,
},
/* {
.match_flags = BMI_DEVICE_ID_MATCH_VENDOR | BMI_DEVICE_ID_MATCH_PRODUCT,
.vendor = BMI_VENDOR_SEED_STUDIO,
.product = BMI_PRODUCT_BUGDUINO,
.revision = BMI_ANY,
},*/
{ 0,},
};

Expand Down

0 comments on commit 9be4412

Please sign in to comment.