All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: iio: light: isl29018/28: remove I2C_CLASS_HWMON .class setting
@ 2016-07-16  2:28 Alison Schofield
  2016-07-18  8:50 ` Laxman Dewangan
  0 siblings, 1 reply; 7+ messages in thread
From: Alison Schofield @ 2016-07-16  2:28 UTC (permalink / raw)
  To: jic23; +Cc: ldewangan, knaack.h, lars, pmeerw, linux-iio, linux-kernel

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

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Cc: Daniel Baluta <daniel.baluta@gmail.com>
---
 drivers/staging/iio/light/isl29018.c | 1 -
 drivers/staging/iio/light/isl29028.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
index 80b6a9e..f47a17d 100644
--- a/drivers/staging/iio/light/isl29018.c
+++ b/drivers/staging/iio/light/isl29018.c
@@ -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),
diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index a238b16..aa413e5 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -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,
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-24 11:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-16  2:28 [PATCH] staging: iio: light: isl29018/28: remove I2C_CLASS_HWMON .class setting Alison Schofield
2016-07-18  8:50 ` Laxman Dewangan
2016-07-18 13:30   ` Jonathan Cameron
2016-07-19  7:13     ` Wolfram Sang
2016-07-19  7:13       ` Wolfram Sang
2016-07-20 15:08       ` Jonathan Cameron
2016-07-24 11:30         ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.