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
Tento commit je obsažen v:
Shiva Krishna Pittala
2018-01-25 20:36:53 +05:30
odevzdal snandini
rodič 318d20fc69
revize e37387598e
4 změnil soubory, kde provedl 1072 přidání a 909 odebrání

Zobrazit soubor

@@ -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
* level sample processing rather than lower level delivery.
*/
p_sops->is_spectral_enabled = tif_spectral_sim_is_spectral_enabled;
p_sops->is_spectral_active = tif_spectral_sim_is_spectral_active;
p_sops->start_spectral_scan = tif_spectral_sim_start_spectral_scan;
p_sops->stop_spectral_scan = tif_spectral_sim_stop_spectral_scan;
p_sops->is_spectral_enabled = target_if_spectral_sops_sim_is_enabled;
p_sops->is_spectral_active = target_if_spectral_sops_sim_is_active;
p_sops->start_spectral_scan = target_if_spectral_sops_sim_start_scan;
p_sops->stop_spectral_scan = target_if_spectral_sops_sim_stop_scan;
p_sops->configure_spectral =
tif_spectral_sim_configure_params;
p_sops->get_spectral_config = tif_spectral_sim_get_params;
target_if_spectral_sops_sim_configure_params;
p_sops->get_spectral_config = target_if_spectral_sops_sim_get_params;
}
#else

Rozdílový obsah nebyl zobrazen, protože je příliš veliký Načíst rozdílové porovnání

Zobrazit soubor

@@ -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
@@ -24,85 +24,102 @@
#include "target_if_spectral.h"
/**
* @brief Initialize Spectral Simulation functionality
* @details
* Setup data structures to be used for serving out data corresponding to
* various bandwidths and configurations.
* target_if_spectral_sim_attach() - Initialize Spectral Simulation
* functionality
* @spectral - pointer to spectral internal data structure
*
* @param spectral - ath_spectral structure
* @return Integer status value. 0:Success, -1:Failure
* Setup data structures to be used for serving out data corresponding to
* various bandwidths and configurations.
*
* Return: Integer status value. 0:Success, -1:Failure
*/
int target_if_spectral_sim_attach(struct target_if_spectral *spectral);
/**
* @brief De-initialize Spectral Simulation functionality
* @details
* Free up data structures used for serving out data corresponding to various
* bandwidths and configurations.
* target_if_spectral_sim_detach() - De-initialize Spectral Simulation
* functionality
* @spectral - pointer to spectral internal data structure
*
* @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);
/**
* @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
* @return Integer status value. 0: Not active, 1: Active
* Check if Spectral (simulated) is 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
* @return Integer status value. 0: Not enabled, 1: Enabled
* Check if Spectral(simulated) is 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
* @return Integer status value. 0: Failure, 1: Success
* Start Spectral simulation
*
* 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
* @return Integer status value. 0: Failure, 1: Success
* Stop Spectral simulation
*
* 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
* @details
* target_if_spectral_sops_sim_configure_params() - Configure Spectral
* 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
* 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.
*
* @param arg - pointer to ath_spectral structure
* @param params - pointer to struct spectral_config structure bearing Spectral
* configuration
* @return Integer status value. 0: Failure, 1: Success
* 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,
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
* @param params - pointer to struct spectral_config structure which should be
* populated with Spectral configuration
* @return Integer status value. 0: Failure, 1: Success
* Get Spectral parameters configured into simulation
*
* 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,
struct spectral_config *params);
struct spectral_config *params);
#endif /* QCA_SUPPORT_SPECTRAL_SIMULATION */
#endif /* _SPECTRAL_SIM_H_ */
#endif /* QCA_SUPPORT_SPECTRAL_SIMULATION */
#endif /* _SPECTRAL_SIM_H_ */

Rozdílový obsah nebyl zobrazen, protože je příliš veliký Načíst rozdílové porovnání