msm: camera: Handle out of sequence requests in KMD drivers

The change handles out of sequence requests by performing
necessary state validation in sensor, actuator, csiphy, eeprom,
ois & flash submodules. In a given state a driver will be able
to support certain operations. Any other unsupported requests
in that state would be reported as an error.

Change-Id: I94582c24c94e8b8a262dc257dfbd44e99aa61e66
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
11 files changed