remoteproc: s/big switch/lookup table/
commite12bc14b88d44e5c1456dccb59ff58103f6c6edc
authorOhad Ben-Cohen <ohad@wizery.com>
Tue, 31 Jan 2012 14:07:27 +0000 (31 16:07 +0200)
committerOhad Ben-Cohen <ohad@wizery.com>
Wed, 22 Feb 2012 16:28:49 +0000 (22 18:28 +0200)
treec7df21efc8f6f3649a35c16b01e90c16ce51d49a
parentcf59d3e9a715fd2b6ff96e4a3a130fceded09a64
remoteproc: s/big switch/lookup table/

A lookup table would be easier to extend, and the resulting
code is a bit cleaner.

Reported-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h