HID: wacom: Write shared touch initial status only once
Subsystems (3)
PATCH RESEND 1/2 HID: wacom: 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.
---
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
Quoted 11 lines · Ping Cheng
From: Ping Cheng <[email protected]>
For consistency with how the shared
has_mute_touch_switchis handled during registration, let's applyWRITE_ONCEtois_touch_ontoo.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
I have applied both patches to hid.git#for-7.4/wacom, thanks.
Please, for upcoming submissions, fix your workflow -- 1/2 and 2/2 have been sent completely separately without being properly threaded (no
References: nor In-Reply-To: header).
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs