mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
HID: wacom: Write shared touch initial status only once
For consistency with how the shared has_mute_touch_switch is handled
during registration, let's apply WRITE_ONCE to is_touch_on too.
Cc: stable@vger.kernel.org
Fixes: ba16e5ffba ("HID: wacom: Advertise SW_MUTE_DEVICE capability prior to registration")
Reviewed-by: Lee Jones <lee@kernel.org>
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
dbafba22aa
commit
cae3031c69
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user