dmaengine: idxd: Simplify WQ attribute visibility checks
authorFenghua Yu <fenghua.yu@intel.com>
Wed, 12 Jul 2023 17:44:35 +0000 (10:44 -0700)
committerVinod Koul <vkoul@kernel.org>
Tue, 1 Aug 2023 18:04:43 +0000 (23:34 +0530)
commit97b1185fe54c8ce94104e3c7fa4ee0bbedd85920
treea5b00bb0e4555fe369153e9b7dcc12848e9176fe
parentcae701b9ccf128edea26982f73178087fc3ad180
dmaengine: idxd: Simplify WQ attribute visibility checks

The functions that check if WQ attributes are invisible are almost
duplicate. Define a helper to simplify these functions and future
WQ attribute visibility checks as well.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230712174436.3435088-1-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c