Skip to content

Commit c6acad6

Browse files
mellanoxbmcdvhart
authored andcommitted
platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface
Restructure mlxreg header for unification of hotplug item definitions. Unify hotplug items to allow any kind of item (power controller, fan eeprom, psu eeprom, asic health) in common way. Use a hardware independent regmap interface, enabling the support of hotplug events over programmable devices attached to different bus types, such as I2C, LPC, or SPI. Add a device node to the mlxreg_core_data structure. Signed-off-by: Vadim Pasternak <vadimp@mellanox.com> Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com> [dvhart: spelling corrections, refactor device node introduction] Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
1 parent 752849e commit c6acad6

File tree

4 files changed

+635
-337
lines changed

4 files changed

+635
-337
lines changed

drivers/platform/mellanox/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if MELLANOX_PLATFORM
1616

1717
config MLXREG_HOTPLUG
1818
tristate "Mellanox platform hotplug driver support"
19+
depends on REGMAP
1920
depends on HWMON
2021
depends on I2C
2122
---help---

0 commit comments

Comments
 (0)