diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2014-10-10 02:30:15 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-10 06:26:03 +0400 |
commit | c185b07fc9f24d52a864376ed22a6d84384b0c53 (patch) | |
tree | 03822f22af12a7b905ac7dde19406f72a9ba47a8 /tools | |
parent | 2e1d06e1c05af9dbe8a3bfddeefbf041ca637fff (diff) | |
download | linux-c185b07fc9f24d52a864376ed22a6d84384b0c53.tar.xz |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions