Skip to content

Commit 8d06105

Browse files
committed
hwmon: (amc6821) Drop unnecessary enum chips
The driver only supports a single chip, so an enum to determine the chip type is unnecessary. Drop it. No functional change intended. Reviewed-by: Quentin Schulz <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent a9c2f41 commit 8d06105

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/hwmon/amc6821.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ module_param(pwminv, int, 0444);
3636
static int init = 1; /*Power-on initialization.*/
3737
module_param(init, int, 0444);
3838

39-
enum chips { amc6821 };
40-
4139
#define AMC6821_REG_DEV_ID 0x3D
4240
#define AMC6821_REG_COMP_ID 0x3E
4341
#define AMC6821_REG_CONF1 0x00
@@ -944,7 +942,7 @@ static int amc6821_probe(struct i2c_client *client)
944942
}
945943

946944
static const struct i2c_device_id amc6821_id[] = {
947-
{ "amc6821", amc6821 },
945+
{ "amc6821", 0 },
948946
{ }
949947
};
950948

@@ -953,7 +951,6 @@ MODULE_DEVICE_TABLE(i2c, amc6821_id);
953951
static const struct of_device_id __maybe_unused amc6821_of_match[] = {
954952
{
955953
.compatible = "ti,amc6821",
956-
.data = (void *)amc6821,
957954
},
958955
{ }
959956
};

0 commit comments

Comments
 (0)