z2: Deal with missing calibration data

(by not sending anything in that case)

Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
This commit is contained in:
Sasha Finkelstein 2024-02-02 20:01:36 +01:00 committed by Hector Martin
parent 48837f4d47
commit a42c839120

View file

@ -675,9 +675,7 @@ static int dt_set_multitouch(void)
u32 len;
const u8 *cal_blob = adt_getprop(adt, anode, "multi-touch-calibration", &len);
if (!cal_blob || !len) {
printf("ADT: Failed to get multi-touch-calibration from %s, disable %s\n", adt_touchbar,
fdt_get_name(dt, node, NULL));
fdt_setprop_string(dt, node, "status", "disabled");
printf("ADT: Failed to get multi-touch-calibration from %s\n", adt_touchbar);
return 0;
}