linux-stable/drivers/platform/mellanox
Luiz Capitulino 0d46439bda
platform/mellanox: mlxbf-pmc: mlxbf_pmc_event_list(): make size ptr optional
The mlxbf_pmc_event_list() function returns a pointer to an array of
supported events and the array size. The array size is returned via
a pointer passed as an argument, which is mandatory.

However, we want to be able to use mlxbf_pmc_event_list() just to check
if a block name is implemented/supported. For this usage passing the size
argument is not necessary so let's make it optional.

Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/182de8ec6b9c33152f2ba6b248c35b0311abf5e4.1708635408.git.luizcap@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2024-02-27 14:45:32 +02:00
..
Kconfig platform/mellanox: NVSW_SN2201 should depend on ACPI 2023-09-11 13:21:46 +02:00
Makefile platform/mellanox: Add support for new SN2201 system 2022-05-12 15:35:29 +02:00
mlxbf-bootctl.c drivers/platform/mellanox: Convert snprintf to sysfs_emit 2024-01-24 12:51:58 +02:00
mlxbf-bootctl.h mlxbf-bootctl: Support sysfs entries for MFG fields 2023-08-23 17:31:27 +02:00
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: mlxbf_pmc_event_list(): make size ptr optional 2024-02-27 14:45:32 +02:00
mlxbf-tmfifo-regs.h platform/mellanox: Add BlueField-3 support in the tmfifo driver 2022-11-16 08:48:19 +01:00
mlxbf-tmfifo.c platform/mellanox: mlxbf-tmfifo: Drop Tx network packet when Tx TmFIFO is full 2024-01-22 12:21:40 +01:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: Convert to platform remove callback returning void 2023-09-28 13:26:25 +03:00
mlxreg-io.c platform/mellanox: mlxreg-io: Convert to platform remove callback returning void 2023-09-28 13:26:27 +03:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: Convert to platform remove callback returning void 2023-09-28 13:26:28 +03:00
nvsw-sn2201.c platform/mellanox: nvsw-sn2201: Convert to platform remove callback returning void 2023-09-28 13:26:31 +03:00