[PATCH] hdio.txt: fix typos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Example code contained incorrect ioctl call name.

Signed-off-by: Andrey Utkin <andrey.krieger.utkin@xxxxxxxxx>
---
 Documentation/ioctl/hdio.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/ioctl/hdio.txt b/Documentation/ioctl/hdio.txt
index 18eb98c..69e4ed3 100644
--- a/Documentation/ioctl/hdio.txt
+++ b/Documentation/ioctl/hdio.txt
@@ -453,7 +453,7 @@ HDIO_GET_BUSSTATE		get the bus state of the hwif
 	usage:
 
 	  long state;
-	  ioctl(fd, HDIO_SCAN_HWIF, &state);
+	  ioctl(fd, HDIO_GET_BUSSTATE, &state);
 
 	inputs:		none
 
@@ -473,7 +473,7 @@ HDIO_SET_BUSSTATE		set the bus state of the hwif
 
 	  int state;
 	  ...
-	  ioctl(fd, HDIO_SCAN_HWIF, state);
+	  ioctl(fd, HDIO_SET_BUSSTATE, state);
 
 	inputs:
 	  Desired IDE power state.  One of BUSSTATE_OFF, BUSSTATE_ON,
-- 
1.7.12.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux