remtoteproc: maintain max notifyid
authorSjur Brændeland <sjur.brandeland@stericsson.com>
Tue, 18 Sep 2012 18:32:45 +0000 (20:32 +0200)
committerOhad Ben-Cohen <ohad@wizery.com>
Tue, 18 Sep 2012 18:55:52 +0000 (21:55 +0300)
commit099a3f33c82b5153a4422eb92c648098b3f7c086
treeceeb12f2321595dd465aac47873ab2497463a8b8
parent2e37abb89a2ef13c524b0728bb9893f996a10b6b
remtoteproc: maintain max notifyid

Some of the rproc drivers (STE modem specifically) needs to know
the range of the notification IDs used for notifying the device.

Maintain a variable in struct rproc holding the largest allocated
notification id, so low-level rproc drivers could access it.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
[ohad: rebase, slightly edit commit log]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h