beaglelogic: Reorganize beaglelogic.h

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
beaglelogic: Update protocol.h

 * Remove unused DEFAULT_SAMPLERATE macro
 * Update header
 * Add "lasterror" to devcontext

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
beaglelogic: Shuffle log message location

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
beaglelogic: Use built-in MIN()

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
beaglelogic: linewrap fix

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
beaglelogic: Use lseek instead of dummy read()

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
beaglelogic: Remove TODO Software triggers

Already done

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
beaglelogic: Update api.c with new beaglelogic.h

 * Update errnoeous channel count in comment
 * Cleanup redundant code

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>