]> git.baikalelectronics.ru Git - kernel.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)
commit7db4d5b0da9a68b51aec0d196d6feeda6f1b3c5f
tree03822f22af12a7b905ac7dde19406f72a9ba47a8
parent95a48a3836267dd32137d477aff0baeb7c5982cb
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