Skip to contentSkip to conversation

iio: doc: fix typo

PATCH In review Martin Kepplinger 2 participants 3 messages Apr 30, 2015 – May 17, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: doc: fix typo

Since we have deviceX, we don't need accelX. This has no users as of now, so correcting this is no problem.

---

That's really just a question now. If I'm wrong, sorry for the noise.

 Documentation/ABI/testing/sysfs-bus-iio | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-bus-iio +1 -1
index 3befcb1..efd1334 100644
@@ -1119,7 +1119,7 @@ Description:
 		This attribute is used to read the amount of quadrature error
 		present in the device at a given time.
 
-What:		/sys/.../iio:deviceX/in_accelX_power_mode
+What:		/sys/.../iio:deviceX/in_accel_power_mode
 KernelVersion:	3.11
 Contact:	[email protected]
 Description:
Signature · 1 line
2.1.4
maintainer
#1 lore raw
Quoted 4 lines · Martin Kepplinger

Since we have deviceX, we don't need accelX. This has no users as of now, so correcting this is no problem.

The X is certainly misleading. The interface could have a number there, (if we have a device with multiple parallel accelerometers - unusual, but not unheard of) but it would be the channel index, not the device index and hence should be Y not X.

Or as we don't have any of these anyway, just drop the X and leave it as an un-indexed accelerometer channel.

Jonathan

Quoted 21 lines

---

That's really just a question now. If I'm wrong, sorry for the noise.

 Documentation/ABI/testing/sysfs-bus-iio | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-bus-iio +1 -1
index 3befcb1..efd1334 100644
@@ -1119,7 +1119,7 @@ Description:
 		This attribute is used to read the amount of quadrature error
 		present in the device at a given time.
 
-What:		/sys/.../iio:deviceX/in_accelX_power_mode
+What:		/sys/.../iio:deviceX/in_accel_power_mode
 KernelVersion:	3.11
 Contact:	[email protected]
 Description:
#2 lore raw

Am 3. Mai 2015 21:14:02 MESZ, schrieb Jonathan Cameron <[email protected]>:

Quoted 13 lines · Martin Kepplinger
Quoted 1 line

Since we have deviceX, we don't need accelX. This has no users as of

now, so

Quoted 3 lines

correcting this is no problem.

The X is certainly misleading. The interface could have a number there,
(if we have a device with multiple parallel accelerometers - unusual, but
not unheard of) but it would be the channel index, not the device index and hence should be Y not X.

Quoted 5 lines

Or as we don't have any of these anyway, just drop the X and leave it as
an un-indexed accelerometer channel.

Jonathan

There actually is a user, without the index, bma180.c and if it's done correctly there I plan to use it aswell.

I think removing this index would be the right thing now and your scenario may be a bigger change.

martin

Quoted 22 lines

Review

Quoted 8 lines

---

That's really just a question now. If I'm wrong, sorry for the noise.

 Documentation/ABI/testing/sysfs-bus-iio | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/Documentation/ABI/testing/sysfs-bus-iio

Quoted 13 lines

index 3befcb1..efd1334 100644

Documentation/ABI/testing/sysfs-bus-iio +1 -1
@@ -1119,7 +1119,7 @@ Description:
 		This attribute is used to read the amount of quadrature error
 		present in the device at a given time.
 
-What:		/sys/.../iio:deviceX/in_accelX_power_mode
+What:		/sys/.../iio:deviceX/in_accel_power_mode
 KernelVersion:	3.11
 Contact:	[email protected]
 Description: