Write shared touch initial status only once
Subsystems (3)
PATCH RESEND 1/2 Write shared touch initial status only once
From: Ping Cheng <[email protected]>
For consistency with how the shared has_mute_touch_switch is handled during registration, let's apply WRITE_ONCE to is_touch_on too.
Fixes ba16e5ffbaa1 ("HID: wacom: Advertise SW_MUTE_DEVICE capability prior to registration")
Reviewed-by Lee Jones <[email protected]>
Signed-off-by Ping Cheng <[email protected]>
---
Note: no code change. Just commit comments and code comments change to the existing patchset
drivers/hid/wacom_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/wacom_sys.c +1 -1
@@ -2386,7 +2386,7 @@ static void wacom_set_shared_values(struct wacom_wac *wacom_wac)* match historic default. */ if (wacom_wac->is_soft_touch_switch) - wacom_wac->shared->is_touch_on = true; +WRITE_ONCE (wacom_wac->shared->is_touch_on, true); }if (wacom_wac->features.device_type &WACOM_DEVICETYPE_TOUCH ) {
Signature · 1 line
2.55.0