summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-iops.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-11-05 21:42:29 +0100
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-11-05 21:42:29 +0100
commit01745112de5f721dd5afb06bc60b4a1e65e397ce (patch)
tree1a32b215de40514524b293fe31bb67a6dee44442 /drivers/ide/ide-iops.c
parent26a5b04075f6f2ccf30b22e7f0fc9127c500a698 (diff)
downloadblackbird-op-linux-01745112de5f721dd5afb06bc60b4a1e65e397ce.tar.gz
blackbird-op-linux-01745112de5f721dd5afb06bc60b4a1e65e397ce.zip
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.c7
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)
#endif
}
+/*
+ * ide_fixstring() cleans up and (optionally) byte-swaps a text string,
+ * removing leading/trailing blanks and compressing internal blanks.
+ * It is primarily used to tidy up the model name/number fields as
+ * returned by the WIN_[P]IDENTIFY commands.
+ */
+
void ide_fixstring (u8 *s, const int bytecount, const int byteswap)
{
u8 *p = s, *end = &s[bytecount & ~1]; /* bytecount must be even */
OpenPOWER on IntegriCloud