qcacmn: Fix the coding convention issues in Spectral simulation

Current target_if Spectral simulation layer code is not following
coding convention rules in some places.

Change-Id: I0bf0f0514b65e17ddce9fb803c647448ee4b5b3a
CRs-Fixed: 2151555
This commit is contained in:
Shiva Krishna Pittala
2018-01-25 20:36:53 +05:30
committed by snandini
parent 318d20fc69
commit e37387598e
4 changed files with 1072 additions and 909 deletions

View File

@@ -1410,13 +1410,13 @@ target_if_init_spectral_simulation_ops(struct target_if_spectral_ops *p_sops)
* use of record and replay of samples would concern higher * use of record and replay of samples would concern higher
* level sample processing rather than lower level delivery. * level sample processing rather than lower level delivery.
*/ */
p_sops->is_spectral_enabled = tif_spectral_sim_is_spectral_enabled; p_sops->is_spectral_enabled = target_if_spectral_sops_sim_is_enabled;
p_sops->is_spectral_active = tif_spectral_sim_is_spectral_active; p_sops->is_spectral_active = target_if_spectral_sops_sim_is_active;
p_sops->start_spectral_scan = tif_spectral_sim_start_spectral_scan; p_sops->start_spectral_scan = target_if_spectral_sops_sim_start_scan;
p_sops->stop_spectral_scan = tif_spectral_sim_stop_spectral_scan; p_sops->stop_spectral_scan = target_if_spectral_sops_sim_stop_scan;
p_sops->configure_spectral = p_sops->configure_spectral =
tif_spectral_sim_configure_params; target_if_spectral_sops_sim_configure_params;
p_sops->get_spectral_config = tif_spectral_sim_get_params; p_sops->get_spectral_config = target_if_spectral_sops_sim_get_params;
} }
#else #else

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015,2017 The Linux Foundation. All rights reserved. * Copyright (c) 2015,2017-2018 The Linux Foundation. All rights reserved.
* *
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
@@ -24,85 +24,102 @@
#include "target_if_spectral.h" #include "target_if_spectral.h"
/** /**
* @brief Initialize Spectral Simulation functionality * target_if_spectral_sim_attach() - Initialize Spectral Simulation
* @details * functionality
* Setup data structures to be used for serving out data corresponding to * @spectral - pointer to spectral internal data structure
* various bandwidths and configurations.
* *
* @param spectral - ath_spectral structure * Setup data structures to be used for serving out data corresponding to
* @return Integer status value. 0:Success, -1:Failure * various bandwidths and configurations.
*
* Return: Integer status value. 0:Success, -1:Failure
*/ */
int target_if_spectral_sim_attach(struct target_if_spectral *spectral); int target_if_spectral_sim_attach(struct target_if_spectral *spectral);
/** /**
* @brief De-initialize Spectral Simulation functionality * target_if_spectral_sim_detach() - De-initialize Spectral Simulation
* @details * functionality
* Free up data structures used for serving out data corresponding to various * @spectral - pointer to spectral internal data structure
* bandwidths and configurations.
* *
* @param spectral - ath_spectral structure * Free up data structures used for serving out data corresponding to various
* bandwidths and configurations.
*
* Return: None
*/ */
void target_if_spectral_sim_detach(struct target_if_spectral *spectral); void target_if_spectral_sim_detach(struct target_if_spectral *spectral);
/** /**
* @brief Check if Spectral (simulated) is active * target_if_spectral_sops_sim_is_active() - Check if Spectral(simulated) is
* active
* @arg - pointer to spectral internal data structure
* *
* @param arg - pointer to ath_spectral structure * Check if Spectral (simulated) is active
* @return Integer status value. 0: Not active, 1: Active *
* Return: Integer status value. 0: Not active, 1: Active
*/ */
u_int32_t tif_spectral_sim_is_spectral_active(void *arg); uint32_t target_if_spectral_sops_sim_is_active(void *arg);
/** /**
* @brief Check if Spectral (simulated) is enabled * target_if_spectral_sops_sim_is_enabled() - Check if Spectral(simulated) is
* enabled
* @arg - pointer to spectral internal data structure
* *
* @param arg - pointer to ath_spectral structure * Check if Spectral(simulated) is enabled
* @return Integer status value. 0: Not enabled, 1: Enabled *
* Return: Integer status value. 0: Not enabled, 1: Enabled
*/ */
u_int32_t tif_spectral_sim_is_spectral_enabled(void *arg); uint32_t target_if_spectral_sops_sim_is_enabled(void *arg);
/** /**
* @brief Start Spectral simulation * target_if_spectral_sops_sim_start_scan() - Start Spectral simulation
* @arg - pointer to spectral internal data structure
* *
* @param arg - pointer to ath_spectral structure * Start Spectral simulation
* @return Integer status value. 0: Failure, 1: Success *
* Return: Integer status value. 0: Failure, 1: Success
*/ */
u_int32_t tif_spectral_sim_start_spectral_scan(void *arg); uint32_t target_if_spectral_sops_sim_start_scan(void *arg);
/** /**
* @brief Stop Spectral simulation * target_if_spectral_sops_sim_stop_scan() - Stop Spectral simulation
* @arg - pointer to spectral internal data structure
* *
* @param arg - pointer to ath_spectral structure * Stop Spectral simulation
* @return Integer status value. 0: Failure, 1: Success *
* Return: Integer status value. 0: Failure, 1: Success
*/ */
u_int32_t tif_spectral_sim_stop_spectral_scan(void *arg); uint32_t target_if_spectral_sops_sim_stop_scan(void *arg);
/** /**
* @brief Configure Spectral parameters into simulation * target_if_spectral_sops_sim_configure_params() - Configure Spectral
* @details * parameters into simulation
* arg - pointer to ath_spectral structure
* params - pointer to struct spectral_config structure bearing Spectral
* configuration
*
* Internally, this function actually searches if a record set with the desired * Internally, this function actually searches if a record set with the desired
* configuration has been loaded. If so, it points to the record set for * configuration has been loaded. If so, it points to the record set for
* later usage when the simulation is started. If not, it returns an error. * later usage when the simulation is started. If not, it returns an error.
* *
* @param arg - pointer to ath_spectral structure * Return: Integer status value. 0: Failure, 1: Success
* @param params - pointer to struct spectral_config structure bearing Spectral
* configuration
* @return Integer status value. 0: Failure, 1: Success
*/ */
u_int32_t tif_spectral_sim_configure_params( uint32_t target_if_spectral_sops_sim_configure_params(
void *arg, void *arg,
struct spectral_config *params); struct spectral_config *params);
/** /**
* @brief Get Spectral parameters configured into simulation * target_if_spectral_sops_sim_get_params() - Get Spectral parameters configured
* into simulation
* arg - pointer to ath_spectral structure
* params - pointer to struct spectral_config structure which should be
* populated with Spectral configuration
* *
* @param arg - pointer to ath_spectral structure * Get Spectral parameters configured into simulation
* @param params - pointer to struct spectral_config structure which should be *
* populated with Spectral configuration * Return: Integer status value. 0: Failure, 1: Success
* @return Integer status value. 0: Failure, 1: Success
*/ */
u_int32_t tif_spectral_sim_get_params( uint32_t target_if_spectral_sops_sim_get_params(
void *arg, void *arg,
struct spectral_config *params); struct spectral_config *params);
#endif /* QCA_SUPPORT_SPECTRAL_SIMULATION */ #endif /* QCA_SUPPORT_SPECTRAL_SIMULATION */
#endif /* _SPECTRAL_SIM_H_ */ #endif /* _SPECTRAL_SIM_H_ */

File diff suppressed because it is too large Load Diff