Skip to contentSkip to conversation

staging: iio: light: isl29018/28: remove I2C_CLASS_HWMON .class setting

PATCH Applied Alison Schofield 4 participants 6 messages Jul 16, 2016 – Jul 24, 2016

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

PATCH 1/1 staging: iio: light: isl29018/28: remove I2C_CLASS_HWMON .class setting

I2C_CLASS_HWMON is for a hardware monitoring chip wanting auto-detection. IIO drivers don't typically use .class. Remove it.

---
 drivers/staging/iio/light/isl29018.c | 1 -
 drivers/staging/iio/light/isl29028.c | 1 -
 2 files changed, 2 deletions(-)
drivers/staging/iio/light/isl29018.c +0 -1
index 80b6a9e..f47a17d 100644
@@ -823,7 +823,6 @@ static const struct of_device_id isl29018_of_match[] = {
 MODULE_DEVICE_TABLE(of, isl29018_of_match);
 
 static struct i2c_driver isl29018_driver = {
-	.class	= I2C_CLASS_HWMON,
 	.driver	 = {
 			.name = "isl29018",
 			.acpi_match_table = ACPI_PTR(isl29018_acpi_match),
drivers/staging/iio/light/isl29028.c +0 -1
index a238b16..aa413e5 100644
@@ -546,7 +546,6 @@ static const struct of_device_id isl29028_of_match[] = {
 MODULE_DEVICE_TABLE(of, isl29028_of_match);
 
 static struct i2c_driver isl29028_driver = {
-	.class	= I2C_CLASS_HWMON,
 	.driver  = {
 		.name = "isl29028",
 		.of_match_table = isl29028_of_match,
Signature · 1 line
2.1.4
maintainer
#2 lore raw
Quoted 6 lines · Laxman Dewangan
Quoted 4 lines · Alison Schofield

I2C_CLASS_HWMON is for a hardware monitoring chip wanting auto-detection. IIO drivers don't typically use .class. Remove it.

Quoted 6 lines
Quoted 3 lines

Agree.

Any resulting ABI change from dropping it?
I don't think so, as it doesn't support detection anyway, but best to be sure ;)

Quoted 4 lines
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by
#3 lore raw
Quoted 7 lines · Jonathan Cameron
Quoted 6 lines · Laxman Dewangan
Quoted 4 lines · Alison Schofield

I2C_CLASS_HWMON is for a hardware monitoring chip wanting auto-detection. IIO drivers don't typically use .class. Remove it.

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

Agree.

Any resulting ABI change from dropping it?

What do you mean with ABI? This is only relevant for "automatic" instantiation. From me:

maintainer
#4 lore raw
Quoted 12 lines · Wolfram Sang
Quoted 11 lines · Jonathan Cameron
Quoted 10 lines · Laxman Dewangan
Quoted 7 lines · Alison Schofield

I2C_CLASS_HWMON is for a hardware monitoring chip wanting auto-detection. IIO drivers don't typically use .class. Remove it.

Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

Agree.

Any resulting ABI change from dropping it?

What do you mean with ABI? This is only relevant for "automatic" instantiation.

Cool, I was just being paranoid and didn't have time to check!

Thanks,

Jonathan

Quoted 4 lines

From me:

maintainer Applied
#5 lore raw
Quoted 17 lines · Jonathan Cameron
Quoted 16 lines · Wolfram Sang
Quoted 14 lines · Jonathan Cameron
Quoted 6 lines · Laxman Dewangan
Quoted 4 lines · Alison Schofield

I2C_CLASS_HWMON is for a hardware monitoring chip wanting auto-detection. IIO drivers don't typically use .class. Remove it.

Quoted 6 lines
Quoted 3 lines

Agree.

Any resulting ABI change from dropping it?

Quoted 12 lines
Quoted 2 lines

What do you mean with ABI? This is only relevant for "automatic" instantiation.

Cool, I was just being paranoid and didn't have time to check!

Thanks,

Jonathan

Quoted 4 lines

From me:

Applied to the togreg branch of iio.git - initially pushed out as testing for the autoubuilders to play with it.

thanks,

Jonathan

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html