mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
replace nested max/min macros with {max,min}3 macro
Use the new {max,min}3 macros to save some cycles and bytes on the stack.
This patch substitutes trivial nested macros with their counterpart.
Signed-off-by: Hagen Paul Pfeifer <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Hartley Sweeten <[email protected]>
Cc: Russell King <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: Roland Dreier <[email protected]>
Cc: Sean Hefty <[email protected]>
Cc: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f27c85c56b
commit
732eacc054
8 changed files with 9 additions and 12 deletions
|
|
@ -482,7 +482,7 @@ static s32 pm121_correct(s32 new_setpoint,
|
|||
new_min += correction->offset;
|
||||
new_min = (new_min >> 16) + min;
|
||||
|
||||
return max(new_setpoint, max(new_min, 0));
|
||||
return max3(new_setpoint, new_min, 0);
|
||||
}
|
||||
|
||||
static s32 pm121_connect(unsigned int control_id, s32 setpoint)
|
||||
|
|
|
|||
Loading…
Reference in a new issue