dbus-sdr: Refactor ipmiStorageGetSDR()

Move some of the code blocks into helper functions:
parseSdrIdFromPath() and constructSensorSdr().
This is to handle more types of sensors in the future.

Signed-off-by: Hao Jiang <jianghao@google.com>
Change-Id: I58edfd9383985de6c5e5d9e1a42aa9135e449e78
Signed-off-by: Willy Tu <wltu@google.com>
1 file changed