Skip to content

Commit b75b23b

Browse files
AlisonSchofieldjic23
authored andcommitted
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. Signed-off-by: Alison Schofield <[email protected]> Cc: Daniel Baluta <[email protected]> Acked-by: Laxman Dewangan <[email protected]> Acked-by: Wolfram Sang <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent f612770 commit b75b23b

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

drivers/staging/iio/light/isl29018.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,6 @@ static const struct of_device_id isl29018_of_match[] = {
823823
MODULE_DEVICE_TABLE(of, isl29018_of_match);
824824

825825
static struct i2c_driver isl29018_driver = {
826-
.class = I2C_CLASS_HWMON,
827826
.driver = {
828827
.name = "isl29018",
829828
.acpi_match_table = ACPI_PTR(isl29018_acpi_match),

drivers/staging/iio/light/isl29028.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ static const struct of_device_id isl29028_of_match[] = {
546546
MODULE_DEVICE_TABLE(of, isl29028_of_match);
547547

548548
static struct i2c_driver isl29028_driver = {
549-
.class = I2C_CLASS_HWMON,
550549
.driver = {
551550
.name = "isl29028",
552551
.of_match_table = isl29028_of_match,

0 commit comments

Comments
 (0)