]> git.karo-electronics.de Git - karo-tx-linux.git/commit
include/linux/kernel.h: deduplicate code implementing clamp* macros
authorMichal Nazarewicz <mina86@mina86.com>
Thu, 9 Oct 2014 22:30:15 +0000 (15:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:26:03 +0000 (22:26 -0400)
commitc185b07fc9f24d52a864376ed22a6d84384b0c53
tree03822f22af12a7b905ac7dde19406f72a9ba47a8
parent2e1d06e1c05af9dbe8a3bfddeefbf041ca637fff
include/linux/kernel.h: deduplicate code implementing clamp* macros

Instead of open-coding clamp_t macro min_t and max_t the way clamp macro
does and instead of open-coding clamp_val simply use clamp_t.
Furthermore, normalise argument naming in the macros to be lo and hi.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Mark Rustad <mark.d.rustad@intel.com>
Cc: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>
Cc: Hagen Paul Pfeifer <hagen@jauu.net>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kernel.h