]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2025 08:51:23 +0000 (09:51 +0100)
commit96b3fa001774333c82cf0d363586d5ae10b34beb
tree15e6fdbaaee1650cbf7e04f73d0446800a9c9e0e
parent18b4fc93e4e566ae1dd8a1cdb0ef8866300a017d
platform/mellanox: mlxbf-pmc: Remove newline char from event name input

[ Upstream commit 44e6ca8faeeed12206f3e7189c5ac618b810bb9c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/mellanox/mlxbf-pmc.c