atomisp: use min_t and max_t instead of direct casting
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 21 Feb 2012 11:34:32 +0000 (13:34 +0200)
committerbuildbot <buildbot@intel.com>
Mon, 27 Feb 2012 10:56:43 +0000 (02:56 -0800)
commit375d5f9395fa9830511d81e6ff1c0e67420963bc
treee09fe64628f1d6a5a8434a0447afb128da9b7b7c
parentaf0caa8dbac6c5ea18bcbcdae92db68ee71bbe85
atomisp: use min_t and max_t instead of direct casting

BZ: 24615

There are few places where max and min macros used as follows
min(a, (<T>)b)
It could be easily changed to
min_t(<T>, a, b)

Change-Id: I7717b16cc9cc79e1da005e10bc8853d78498efc3
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36100
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/atomisp/atomisp_cmd.c