[PATCH 6.15 084/178] platform/mellanox: mlxreg-lc: Fix logic error in power state check