diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-11-05 15:42:29 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-11-05 15:42:29 -0500 |
commit | 01745112de5f721dd5afb06bc60b4a1e65e397ce (patch) | |
tree | 1a32b215de40514524b293fe31bb67a6dee44442 /drivers/ide/ide-iops.c | |
parent | 26a5b04075f6f2ccf30b22e7f0fc9127c500a698 (diff) |
ide: move ide_fixstring() documentation to ide-iops.c from ide.h
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r-- | drivers/ide/ide-iops.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index b3d91796805e..e17a9ee120ea 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -403,6 +403,13 @@ void ide_fix_driveid (struct hd_driveid *id) | |||
403 | #endif | 403 | #endif |
404 | } | 404 | } |
405 | 405 | ||
406 | /* | ||
407 | * ide_fixstring() cleans up and (optionally) byte-swaps a text string, | ||
408 | * removing leading/trailing blanks and compressing internal blanks. | ||
409 | * It is primarily used to tidy up the model name/number fields as | ||
410 | * returned by the WIN_[P]IDENTIFY commands. | ||
411 | */ | ||
412 | |||
406 | void ide_fixstring (u8 *s, const int bytecount, const int byteswap) | 413 | void ide_fixstring (u8 *s, const int bytecount, const int byteswap) |
407 | { | 414 | { |
408 | u8 *p = s, *end = &s[bytecount & ~1]; /* bytecount must be even */ | 415 | u8 *p = s, *end = &s[bytecount & ~1]; /* bytecount must be even */ |