staging: android: logger: Allocate logs dynamically at boot (v3)
authorTim Bird <tim.bird@am.sony.com>
Thu, 10 May 2012 22:11:36 +0000 (15:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 22:40:56 +0000 (15:40 -0700)
commit10b241991fc10876b46ab7ca690f44281510d85b
tree32326cf3ad8324e26a2734d2afed6ecbe096db7c
parent9a0fbbb52ab08017ac51aceef76514799837f4b0
staging: android: logger: Allocate logs dynamically at boot (v3)

This changes the log initialization to be dynamic, but still
at boot time.  These changes are a predecessor to implementing
runtime allocation and freeing of logs, to make the Android logger
less hard-coded.

Change from a fixed set of static log structures, to allocation
at init time into a list.  Return proper error numbers on log
allocation failure.

Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/logger.c