ACPI: EC: Simplify locking in acpi_ec_event_handler()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Nov 2021 18:40:50 +0000 (19:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 1 Dec 2021 19:17:32 +0000 (20:17 +0100)
commita105acd7e38436ed6bc0714f3120aaaad56cbe3d
tree40a08fbc15eced33697ebbe8256e6d5bdaa198f9
parent388fb77dcf9793b9882e0f0651019f416ef50900
ACPI: EC: Simplify locking in acpi_ec_event_handler()

Because acpi_ec_event_handler() is a work function, it always
runs in process context with interrupts enabled, so it can use
spin_lock_irq() and spin_unlock_irq() for the locking.

Make it do so and adjust white space around those calls.

No expected functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c