am7xxx: factor out an open_device() function from scan_devices()
authorAntonio Ospite <ao2@ao2.it>
Sun, 25 Jan 2015 22:12:03 +0000 (23:12 +0100)
committerAntonio Ospite <ao2@ao2.it>
Sun, 25 Jan 2015 22:12:03 +0000 (23:12 +0100)
commited6e13d9ce88f2cc1decf9a1defe381613274d27
tree2a079796f5c257fe163ccc2018b829769f2b4ed9
parent8f6efd04b7f47174cf9e93adbcd11c5779db0c7e
am7xxx: factor out an open_device() function from scan_devices()

This reduces the indentation level and makes the code more readable, now
it will be easier to improve open_device().
src/am7xxx.c