]> git.baikalelectronics.ru Git - kernel.git/commit
ide: eliminate FIT() macro
authorHarvey Harrison <harvey.harrison@gmail.com>
Tue, 15 Jul 2008 19:21:41 +0000 (21:21 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 15 Jul 2008 19:21:41 +0000 (21:21 +0200)
commite3c3bb1302c1afa4e81876d91da6d3e463936df5
tree1aac71db2339075e976cd7703b646c6e84974cb2
parent3e1c15c28ee38f91adcb2733064ff710702aa338
ide: eliminate FIT() macro

Replace the FIT() macro with the kernel-provided clamp_val() macro.

FIT was always being called with a member of a struct ide_timing,
which are shorts, and constant constraints for the min and max.

Thus we can use clamp_val, rather than clamp_t.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-timing.h
drivers/ide/pci/amd74xx.c
drivers/ide/pci/via82cxxx.c