diff options
Diffstat (limited to 'src/quirks.c')
-rw-r--r-- | src/quirks.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quirks.c b/src/quirks.c index fb49c29a..2ea95ed3 100644 --- a/src/quirks.c +++ b/src/quirks.c @@ -111,6 +111,7 @@ enum bustype { BT_PS2, BT_RMI, BT_I2C, + BT_SPI, }; enum udev_type { @@ -499,6 +500,8 @@ parse_match(struct quirks_context *ctx, s->match.bus = BT_RMI; else if (streq(value, "i2c")) s->match.bus = BT_I2C; + else if (streq(value, "spi")) + s->match.bus = BT_SPI; else goto out; } else if (streq(key, "MatchVendor")) { @@ -1241,6 +1244,10 @@ match_fill_bus_vid_pid(struct match *m, m->bus = BT_I2C; m->bits |= M_BUS; break; + case BUS_SPI: + m->bus = BT_SPI; + m->bits |= M_BUS; + break; default: break; } |