Message ID | 20211229231141.303919-3-dmanti@microsoft.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Add spi-hid, transport for HID over SPI bus | expand |
On Thu, Dec 30, 2021 at 12:11 AM Dmitry Antipov <daantipov@gmail.com> wrote: > > Macro sets the bus field to BUS_SPI and uses arguments to set vendor > product fields. > > Signed-off-by: Dmitry Antipov <dmanti@microsoft.com> > --- Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Cheers, Benjamin > include/linux/hid.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/hid.h b/include/linux/hid.h > index f453be385bd4..1f134c8f8972 100644 > --- a/include/linux/hid.h > +++ b/include/linux/hid.h > @@ -684,6 +684,8 @@ struct hid_descriptor { > .bus = BUS_BLUETOOTH, .vendor = (ven), .product = (prod) > #define HID_I2C_DEVICE(ven, prod) \ > .bus = BUS_I2C, .vendor = (ven), .product = (prod) > +#define HID_SPI_DEVICE(ven, prod) \ > + .bus = BUS_SPI, .vendor = (ven), .product = (prod) > > #define HID_REPORT_ID(rep) \ > .report_type = (rep) > -- > 2.25.1 >
diff --git a/include/linux/hid.h b/include/linux/hid.h index f453be385bd4..1f134c8f8972 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -684,6 +684,8 @@ struct hid_descriptor { .bus = BUS_BLUETOOTH, .vendor = (ven), .product = (prod) #define HID_I2C_DEVICE(ven, prod) \ .bus = BUS_I2C, .vendor = (ven), .product = (prod) +#define HID_SPI_DEVICE(ven, prod) \ + .bus = BUS_SPI, .vendor = (ven), .product = (prod) #define HID_REPORT_ID(rep) \ .report_type = (rep)
Macro sets the bus field to BUS_SPI and uses arguments to set vendor product fields. Signed-off-by: Dmitry Antipov <dmanti@microsoft.com> --- include/linux/hid.h | 2 ++ 1 file changed, 2 insertions(+)