main: Use an sdevent loop to poll POST codes

Currently the daemon spawns a thread to read the kernel device file
and update DBus value. Use sdevent interface such that a single event
loop can process DBus requests as well as IO events.

Tested: on hardware platform tested that daemon still reads POST codes
and update DBus interface as expected.

Change-Id: I998a1fa8d955205faa95ad0002425eb11a4a46eb
Signed-off-by: Kun Yi <kunyi731@gmail.com>
1 file changed