HID: Xinmeng: Add driver for Xinmeng M71 Keyboard
PATCH RESEND v3 1/1 HID: Xinmeng: Add driver for Xinmeng M71 Keyboard
In this driver, the battery is probed, and it checks the capacity and charging status of the battery
Signed-off-by Saalim Quadri <[email protected]>
---
v2 -> v3:
Match lore email to the driver
assign ret val while probing battery
v1 -> v2: Update Kconfig paragraph :/
drivers/hid/Kconfig | 12 +++ drivers/hid/Makefile | 1 + drivers/hid/hid-ids.h | 3 + drivers/hid/hid-xinmeng.c | 170 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 186 insertions(+) create mode 100644 drivers/hid/hid-xinmeng.c
drivers/hid/Kconfig +12 -0
@@ -536,6 +536,18 @@ config HID_XIAOMI Adds support for side buttons of Xiaomi Mi Dual Mode Wireless Mouse Silent Edition. +config HID_XINMENG + tristate "Xinmeng Keyboards" + depends on USB_HID + help + Support for Xinmeng Keyboard. + + Say Y here if you have a Xinmeng M71 Keyboard + and want to be able to read its battery capacity. + + To compile this driver as a module, choose M here: the + module will be called hid-xinmeng. + config HID_GYRATION tristate "Gyration remote control" help
drivers/hid/Makefile +1 -0
@@ -145,6 +145,7 @@ obj-$(CONFIG_HID_UDRAW_PS3) += hid-udraw-ps3.o obj-$(CONFIG_HID_UNIVERSAL_PIDFF) += hid-universal-pidff.o obj-$(CONFIG_HID_LED) += hid-led.o obj-$(CONFIG_HID_XIAOMI) += hid-xiaomi.o +obj-$(CONFIG_HID_XINMENG) += hid-xinmeng.o obj-$(CONFIG_HID_XINMO) += hid-xinmo.o obj-$(CONFIG_HID_ZEROPLUS) += hid-zpff.o obj-$(CONFIG_HID_ZYDACRON) += hid-zydacron.o
drivers/hid/hid-ids.h +3 -0
@@ -1471,6 +1471,9 @@#define USB_DEVICE_ID_XIN_MO_DUAL_ARCADE 0x05e1#define USB_DEVICE_ID_THT_2P_ARCADE 0x75e1 +#define USB_VENDOR_ID_XINMENG 0x3554 +#define USB_DEVICE_ID_XINMENG_M71_RECEIVER 0xfa09 +#define USB_VENDOR_ID_XIROKU 0x1477#define USB_DEVICE_ID_XIROKU_SPX 0x1006#define USB_DEVICE_ID_XIROKU_MPX 0x1007
drivers/hid/hid-xinmeng.c new file +170 -0
170 lines not on this page · raw message
Signature · 1 line
2.34.1
Hello,
Sorry but I just found a few changes to do in the driver, I will update the driver and send a new patch. I have been using this driver in my system for quite a while now, and am able to read battery info.
Sincerely,
Saalim Quadri