Skip to contentSkip to conversation

Correct vendor-prefix and document device isl29028

PATCH Superseded Darshana Padmadas 2 participants 6 messages Sep 30, 2014 – Oct 4, 2014

Subsystems (6)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v3 cover Correct vendor-prefix and document device isl29028

Patchset documents correct and the deprecated vendor-prefix found by checkpatch warning and also documents information of device isl29028 for compatibility. Patchset also includes corrected vendor-prefix and device name in compatible property for files with checkpatch warning of undocumented string "isil,isl29028".

Darshana Padmadas (4):
Documentation: devicetree: bindings: Document correct and deprecated
vendor-prefix with device isl29028
Documentation: devicetree: bindings: Document deprecated device vendor
name to fix related warning
Staging: iio: light: Added correct vendor-prefix for device isl29028
arch: arm: boot: dts: Added correct vendor-prefix with device name to
compatible property

Changes in v3:
- In PATCH 1/4 corrected alphabetical order of vendor-prefix and device name.
- In PATCH 2/4 inserted deprecated vendor-prefix in list in alphabetical order and edited vendor/chip string.
- In PATCH 4/4 dropped deprecated string "isil,isl29028" and included correct vendor-prefix isl with isl29028 to give "isl,isl29028" for device's compatible property.

 Documentation/devicetree/bindings/i2c/trivial-devices.txt | 2 ++
 Documentation/devicetree/bindings/vendor-prefixes.txt     | 1 +
 drivers/staging/iio/light/isl29028.c                      | 3 ++-
 arch/arm/boot/dts/tegra30-cardhu.dtsi                     | 2 +-
 4 files changed, 6 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH v3 1/4 Documentation: devicetree: bindings: Document correct and deprecated vendor-prefix with device isl29028

This patch documents the device isl29028 with its vendor-prefix. Undocumented deprecated vendor-prefix found by checkpatch also documented for compatibility reasons.

---
 Documentation/devicetree/bindings/i2c/trivial-devices.txt | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/i2c/trivial-devices.txt +2 -0
index 6af570e..d024613 100644
@@ -57,6 +57,8 @@ gmt,g751		G751: Digital Temperature Sensor and Thermal Watchdog with Two-Wire In
 infineon,slb9635tt	Infineon SLB9635 (Soft-) I2C TPM (old protocol, max 100khz)
 infineon,slb9645tt	Infineon SLB9645 I2C TPM (new protocol, max 400khz)
 isl,isl12057		Intersil ISL12057 I2C RTC Chip
+isil,isl29028           Deprecated name, use isl,isl29028 instead
+isl,isl29028            Intersil ISL29028 Ambient Light and Proximity Sensor
 maxim,ds1050		5 Bit Programmable, Pulse-Width Modulator
 maxim,max1237		Low-Power, 4-/12-Channel, 2-Wire Serial, 12-Bit ADCs
 maxim,max6625		9-Bit/12-Bit Temperature Sensors with I²C-Compatible Serial Interface
Signature · 1 line
1.9.1
#2 lore raw

PATCH v3 2/4 Documentation: devicetree: bindings: Document deprecated device vendor name to fix related warning

In reply to Darshana Padmadas

This patch documents deprecated vendor name of device isl29028 for compatibility with older kernels.

---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index ac7269f..e2503b8 100644
@@ -68,6 +68,7 @@ img	Imagination Technologies Ltd.
 intel	Intel Corporation
 intercontrol	Inter Control Group
 isee	ISEE 2007 S.L.
+isil 	Intersil (deprecated, use isl)
 isl	Intersil
 karo	Ka-Ro electronics GmbH
 keymile	Keymile GmbH
Signature · 1 line
1.9.1
#3 lore raw

PATCH v3 3/4 Staging: iio: light: Added correct vendor-prefix for device isl29028

In reply to Darshana Padmadas

This patch adds the correct vendor-prefix for device isl29028 and maintains deprecated vendor-prefix found by checkpatch warning for older kernel releases.

---
 drivers/staging/iio/light/isl29028.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/iio/light/isl29028.c +2 -1
index 6014625..60b02a8 100644
@@ -537,7 +537,8 @@ static const struct i2c_device_id isl29028_id[] = {
 MODULE_DEVICE_TABLE(i2c, isl29028_id);
 
 static const struct of_device_id isl29028_of_match[] = {
-	{ .compatible = "isil,isl29028", },
+	{ .compatible = "isl,isl29028", },
+	{ .compatible = "isil,isl29028", }, /* deprecated, don't use */
 	{ },
 };
 MODULE_DEVICE_TABLE(of, isl29028_of_match);
Signature · 1 line
1.9.1
#4 lore raw

PATCH v3 4/4 arch: arm: boot: dts: Added correct vendor-prefix with device name to compatible property

In reply to Darshana Padmadas

This patch adds the correct vendor-prefix listed in Documentation/devicetree/bindings/vendor-prefixes.txt with the device name to compatible property and removes deprecated vendor-prefix.

---
 arch/arm/boot/dts/tegra30-cardhu.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/tegra30-cardhu.dtsi +1 -1
index 2063795..dcc6c75 100644
@@ -187,7 +187,7 @@
 
 		/* ALS and Proximity sensor */
 		isl29028@44 {
-			compatible = "isil,isl29028";
+			compatible = "isl,isl29028";
 			reg = <0x44>;
 			interrupt-parent = <&gpio>;
 			interrupts = <TEGRA_GPIO(L, 0) IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
1.9.1
maintainer
#5 lore raw
In reply to Darshana Padmadas

Please repost this series with the device tree list and maintainers cc'd. What you have looks fine to me, but as it is effecting bindings they must have the opportunity to comment. Rules are either an Ack from them or a least 3 weeks on their list then I can make up my own mind :)

Quoted 28 lines · Darshana Padmadas

Patchset documents correct and the deprecated vendor-prefix found by checkpatch warning and also documents information of device isl29028 for compatibility. Patchset also includes corrected vendor-prefix and device name in compatible property for files with checkpatch warning of undocumented string "isil,isl29028".

Darshana Padmadas (4):
Documentation: devicetree: bindings: Document correct and deprecated
vendor-prefix with device isl29028
Documentation: devicetree: bindings: Document deprecated device vendor
name to fix related warning
Staging: iio: light: Added correct vendor-prefix for device isl29028
arch: arm: boot: dts: Added correct vendor-prefix with device name to
compatible property

Changes in v3:
- In PATCH 1/4 corrected alphabetical order of vendor-prefix and device name.
- In PATCH 2/4 inserted deprecated vendor-prefix in list in alphabetical order and edited vendor/chip string.
- In PATCH 4/4 dropped deprecated string "isil,isl29028" and included correct vendor-prefix isl with isl29028 to give "isl,isl29028" for device's compatible property.

 Documentation/devicetree/bindings/i2c/trivial-devices.txt | 2 ++
 Documentation/devicetree/bindings/vendor-prefixes.txt     | 1 +
 drivers/staging/iio/light/isl29028.c                      | 3 ++-
 arch/arm/boot/dts/tegra30-cardhu.dtsi                     | 2 +-
 4 files changed, 6 insertions(+), 2 deletions(-)