Skip to contentSkip to conversation

iio: light: hid-sensor-prox: Fix modifier

PATCH Applied Srinivas Pandruvada 3 participants 4 messages Apr 14, 2015 – Apr 18, 2015

Subsystems (2)
lore
Share & tools
lore

Srinivas Pandruvada

author maintainer
#0 lore raw

PATCH 1/1 iio: light: hid-sensor-prox: Fix modifier

Currently in_proximity_(null)_raw is getting presented as raw sysfs attribute. Same with the scan_elements.
The modifier doesn't apply to this channel.

---
 drivers/iio/light/hid-sensor-prox.c | 2 --
 1 file changed, 2 deletions(-)
drivers/iio/light/hid-sensor-prox.c +0 -2
index 91ecc46..dc618b4 100644
@@ -43,8 +43,6 @@ struct prox_state {
 static const struct iio_chan_spec prox_channels[] = {
 	{
 		.type = IIO_PROXIMITY,
-		.modified = 1,
-		.channel2 = IIO_NO_MOD,
 		.info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
 		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_OFFSET) |
 		BIT(IIO_CHAN_INFO_SCALE) |
Signature · 1 line
2.1.0
#1 lore raw
Quoted 6 lines · Srinivas Pandruvada

Currently in_proximity_(null)_raw is getting presented as raw sysfs attribute. Same with the scan_elements.
The modifier doesn't apply to this channel.

---

Would be also nice to add a line like this:

Fixes COMMIT_ID ("Commit subject")

in order for stable teams to pick this up.

thanks,
Daniel.

author maintainer
#2 lore raw
Quoted 6 lines · Daniel Baluta
Quoted 4 lines · Srinivas Pandruvada

Currently in_proximity_(null)_raw is getting presented as raw sysfs attribute. Same with the scan_elements.
The modifier doesn't apply to this channel.

Quoted 8 lines
Quoted 2 lines

---

Would be also nice to add a line like this:

Fixes COMMIT_ID ("Commit subject")

in order for stable teams to pick this up.

We can add tag
Cc: [email protected]

Usually Jonathan copies after his merge.

Thanks,
Srinivas

Quoted 3 lines

thanks,
Daniel.

maintainer Applied
#3 lore raw
Quoted 7 lines · Srinivas Pandruvada
Quoted 6 lines · Daniel Baluta
Quoted 4 lines · Srinivas Pandruvada

Currently in_proximity_(null)_raw is getting presented as raw sysfs attribute. Same with the scan_elements.
The modifier doesn't apply to this channel.

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

---

Would be also nice to add a line like this:

Fixes COMMIT_ID ("Commit subject")

It is a nice convention, but when it's been a bug for all versions of the file that have ever been in the tree, it's not so important.

Quoted 6 lines
Quoted 2 lines

in order for stable teams to pick this up.

We can add tag
Cc: [email protected]

Usually Jonathan copies after his merge.

I will indeed.

Applied to the fixes-togreg branch of iio.git and marked for stable.

Quoted 9 lines

Thanks,
Srinivas

Quoted 3 lines

thanks,
Daniel.