]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/mellanox: mlxbf-pmc: Remove newline char from event name input
authorShravan Kumar Ramani <shravankr@nvidia.com>
Wed, 2 Jul 2025 10:09:01 +0000 (06:09 -0400)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 7 Jul 2025 12:53:23 +0000 (15:53 +0300)
commit44e6ca8faeeed12206f3e7189c5ac618b810bb9c
tree5c7de34db48ab6e77340542e94966dea175fcbc6
parentd4e83784b2a9be58b938d55efb232d2751c4cab4
platform/mellanox: mlxbf-pmc: Remove newline char from event name input

Since the input string passed via the command line appends a newline char,
it needs to be removed before comparison with the event_list.

Fixes: 1a218d312e65 ("platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver")
Signed-off-by: Shravan Kumar Ramani <shravankr@nvidia.com>
Reviewed-by: David Thompson <davthompson@nvidia.com>
Link: https://lore.kernel.org/r/4978c18e33313b48fa2ae7f3aa6dbcfce40877e4.1751380187.git.shravankr@nvidia.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/mellanox/mlxbf-pmc.c