ide: move ide_fixstring() documentation to ide-iops.c from ide.h
PATCH 4/18 ide: move ide_fixstring() documentation to ide-iops.c from ide.h
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
--- drivers/ide/ide-iops.c | 7 +++++++ include/linux/ide.h | 9 +-------- 2 files changed, 8 insertions(+), 8 deletions(-)
drivers/ide/ide-iops.c +7 -0
@@ -389,6 +389,13 @@ void ide_fix_driveid (struct hd_driveid#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 */
include/linux/ide.h +1 -8
@@ -851,14 +851,7 @@ ide_startstop_t __ide_abort(ide_drive_textern ide_startstop_t ide_abort (ide_drive_t *,const char *);extern void ide_fix_driveid (struct hd_driveid *); -/* -* 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. -* -* (s, bytecount, byteswap) -*/ +extern void ide_fixstring (u8 *,const int ,const int );int ide_wait_stat (ide_startstop_t *,ide_drive_t *,u8 ,u8 ,unsigned long );
Quoted 1 line · Bartlomiej Zolnierkiewicz
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
Acked-by Sergei Shtylyov <[email protected]>
MBR, Sergei