mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-23 00:20:43 +01:00
quirks: recognize SPI bus
Apple MacBooks (Broadwell/Skylake/Kaby Lake and Apple Silicon)
use SPI to communicate with the keyboard and trackpad.
Signed-off-by: Greg V <greg@unrelenting.technology>
(cherry picked from commit 5f00c32d9e)
This commit is contained in:
parent
b8f90d074e
commit
f905054b5b
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue