nfit/ars: Introduce scrub_flags
authorDan Williams <dan.j.williams@intel.com>
Mon, 22 Apr 2019 23:08:16 +0000 (16:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2019 07:36:39 +0000 (09:36 +0200)
commitbc18c2593635364f0c71f76f8fc395bee33954ab
tree64e1dabe46381c7dfd86b136f92832f2ade312f7
parent82a13a006ed5412fd817419e60113b7c922b21ff
nfit/ars: Introduce scrub_flags

commit e34b8252a3d2893ca55c82dbfcdaa302fa03d400 upstream.

In preparation for introducing new flags to gate whether ARS results are
stale, or poll the completion state, convert the existing flags to an
unsigned long with enumerated values. This conversion allows the flags
to be atomically updated outside of ->init_mutex.

Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/nfit.h