Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3440d5fa authored by Jiri Kosina's avatar Jiri Kosina Committed by Siarhei Vishniakou
Browse files

UPSTREAM: HID: steam: add missing fields in client initialization



->product, ->version and ->type fields in the client struct were left out
unitialized from the hid device fields; fix that.

Reported-by: default avatarRodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>

(cherry picked from commit 165e2cad5a74bddbe6ca2c42fc5d2816f5e67795
("HID: steam: add missing fields in client initialization"))
https://github.com/torvalds/linux/commit/165e2cad5a74bddbe6ca2c42fc5d2816f5e67795



Change-Id: I6f13c2ad6f86a4e06f81dc93616407f9149753ed
Signed-Off-By: default avatarSiarhei Vishniakou <svv@google.com>
Bug: 136263708
Test: connect steam controller
parent 5315dc24
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -651,6 +651,9 @@ static struct hid_device *steam_create_client_hid(struct hid_device *hdev)
	client_hdev->bus = hdev->bus;
	client_hdev->vendor = hdev->vendor;
	client_hdev->product = hdev->product;
	client_hdev->version = hdev->version;
	client_hdev->type = hdev->type;
	client_hdev->country = hdev->country;
	strlcpy(client_hdev->name, hdev->name,
			sizeof(client_hdev->name));
	strlcpy(client_hdev->phys, hdev->phys,