OSDN Git Service

platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface
authorVadim Pasternak <vadimp@mellanox.com>
Tue, 23 Jan 2018 03:55:11 +0000 (19:55 -0800)
committerDarren Hart (VMware) <dvhart@infradead.org>
Wed, 31 Jan 2018 18:36:49 +0000 (10:36 -0800)
commitc6acad68eb2dbffd0497f91b206de5c362f59ee4
tree2115350d7eb993b12a15d4f18352d29681ab1278
parent752849e69715fdc2190945f5532d70e8c80bf384
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>
drivers/platform/mellanox/Kconfig
drivers/platform/mellanox/mlxreg-hotplug.c
drivers/platform/x86/mlx-platform.c
include/linux/platform_data/mlxreg.h