summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorShravan Kumar Ramani <shravankr@nvidia.com>2025-07-02 06:09:02 -0400
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-07-07 15:53:28 +0300
commit0e2cebd72321caeef84b6ba7084e85be0287fb4b (patch)
tree41f85ea050c1a9099a39e9b6a6f6427eb6f4c3cb /scripts/lib
parentf8c1311769d3b2c82688b294b4ae03e94f1c326d (diff)
platform/mellanox: mlxbf-pmc: Use kstrtobool() to check 0/1 input
For setting the enable value, the input should be 0 or 1 only. Use kstrtobool() in place of kstrtoint() in mlxbf_pmc_enable_store() to accept only valid input. Fixes: 423c3361855c ("platform/mellanox: mlxbf-pmc: Add support for BlueField-3") Signed-off-by: Shravan Kumar Ramani <shravankr@nvidia.com> Reviewed-by: David Thompson <davthompson@nvidia.com> Link: https://lore.kernel.org/r/2ee618c59976bcf1379d5ddce2fc60ab5014b3a9.1751380187.git.shravankr@nvidia.com [ij: split kstrbool() change to own commit.] Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions