staging: iio: light: isl29018/28: remove I2C_CLASS_HWMON .class setting
authorAlison Schofield <amsfield22@gmail.com>
Sat, 16 Jul 2016 02:28:47 +0000 (19:28 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 24 Jul 2016 18:58:40 +0000 (19:58 +0100)
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>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/isl29018.c
drivers/staging/iio/light/isl29028.c

index 80b6a9e359f433f817f377a11b601bd68ca9b516..f47a17d7f6b3ec4421750cd9ea2851a220caab33 100644 (file)
@@ -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),
index a238b16ff2da9a523ad11aa910d48dd5f0b513ed..aa413e5878b9d82986f5fdd096100b5262ff1b30 100644 (file)
@@ -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,