intel_mid: Refactored sfi_parse_devs() function
intel_mid: Refactored sfi_parse_devs() function

SFI device_id[] table parsing code is duplicated in every SFI
device handler. This patch removes this code duplication, by
adding a seperate function get_device_id() to parse through the
device table. Also this patch moves the SPI, I2C, IPC info code from
sfi_parse_devs() to respective device handlers.

Signed-off-by: Kuppuswamy Sathyanarayanan <06bf15cd2b5c52056e161a3c809ce33254bee244@linux.intel.com>
Link: b6dd8e16473e0c32696ac94ae783b9a9715968d4@linux.intel.com
Signed-off-by: David Cohen <c031177e4d219c7dd6e3090d8fbcd121f5ab192c@linux.intel.com>
Signed-off-by: H. Peter Anvin <8a453bad9912ffe59bc0f0b8abe03df9be19379e@linux.intel.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs