platform/x86: int1092: Fix non sequential device mode handling
authorShravan S <s.shravan@intel.com>
Wed, 6 Oct 2021 07:35:25 +0000 (13:05 +0530)
committerHans de Goede <hdegoede@redhat.com>
Mon, 11 Oct 2021 14:39:25 +0000 (16:39 +0200)
commit7df227847ab562c42d318bceccebb0c911c87b04
tree4628f4be592fa682174562ddedb21e7e99994815
parentc005828744f584bfcd2cf3ed64dfef15a5078960
platform/x86: int1092: Fix non sequential device mode handling

SAR information from BIOS may come in non sequential pattern.

To overcome the issue, a check is made to extract the right SAR
information using the device mode which is currently being used.

Remove .owner field if calls are used which set it automatically.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: Shravan S <s.shravan@intel.com>
Link: https://lore.kernel.org/r/20211006073525.1332925-1-s.shravan@intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
MAINTAINERS
drivers/platform/x86/intel/int1092/intel_sar.c