Loading drivers/hwmon/ltc2945.c +9 −2 Original line number Diff line number Diff line Loading @@ -58,6 +58,12 @@ #define CONTROL_MULT_SELECT (1 << 0) #define CONTROL_TEST_MODE (1 << 4) static const struct of_device_id __maybe_unused ltc2945_of_match[] = { { .compatible = "adi,ltc2945" }, { } }; MODULE_DEVICE_TABLE(of, ltc2945_of_match); static inline bool is_power_reg(u8 reg) { return reg < LTC2945_SENSE_H; Loading Loading @@ -476,6 +482,7 @@ MODULE_DEVICE_TABLE(i2c, ltc2945_id); static struct i2c_driver ltc2945_driver = { .driver = { .name = "ltc2945", .of_match_table = of_match_ptr(ltc2945_of_match), }, .probe_new = ltc2945_probe, .id_table = ltc2945_id, Loading Loading
drivers/hwmon/ltc2945.c +9 −2 Original line number Diff line number Diff line Loading @@ -58,6 +58,12 @@ #define CONTROL_MULT_SELECT (1 << 0) #define CONTROL_TEST_MODE (1 << 4) static const struct of_device_id __maybe_unused ltc2945_of_match[] = { { .compatible = "adi,ltc2945" }, { } }; MODULE_DEVICE_TABLE(of, ltc2945_of_match); static inline bool is_power_reg(u8 reg) { return reg < LTC2945_SENSE_H; Loading Loading @@ -476,6 +482,7 @@ MODULE_DEVICE_TABLE(i2c, ltc2945_id); static struct i2c_driver ltc2945_driver = { .driver = { .name = "ltc2945", .of_match_table = of_match_ptr(ltc2945_of_match), }, .probe_new = ltc2945_probe, .id_table = ltc2945_id, Loading