comp: rename private field to priv_data

Another cpp keyword that confuses documentation generation
process.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
This commit is contained in:
Marcin Maka 2020-03-23 20:59:43 +01:00 committed by Janusz Jankowski
parent 23d0eae9e2
commit 415906e822
3 changed files with 5 additions and 5 deletions

View File

@ -433,7 +433,7 @@ struct comp_dev {
struct list_item bsink_list; /**< list of sink buffers */
/* private data - core does not touch this */
void *private; /**< private data */
void *priv_data; /**< private data */
/**
* IPC config object header - MUST be at end as it's
@ -535,7 +535,7 @@ static inline struct sof_ipc_comp_config *comp_config(struct sof_ipc_comp *comp)
* @param data Private data.
*/
#define comp_set_drvdata(c, data) \
(c->private = data)
(c->priv_data = data)
/**
* \brief Retrieves driver private data from component device.
@ -543,7 +543,7 @@ static inline struct sof_ipc_comp_config *comp_config(struct sof_ipc_comp *comp)
* @return Private data.
*/
#define comp_get_drvdata(c) \
c->private
c->priv_data
#ifdef UNIT_TEST
#define DECLARE_MODULE(init)

View File

@ -246,7 +246,7 @@ static int test_teardown(void **state)
static void test_audio_mixer_new(void **state)
{
assert_non_null(mixer_dev_mock->private);
assert_non_null(mixer_dev_mock->priv_data);
}
static void test_audio_mixer_prepare_no_sources(void **state)

View File

@ -49,7 +49,7 @@ static int setup_test_case(void **state)
if (!td->dev)
return -EINVAL;
td->cd = (struct comp_data *)td->dev->private;
td->cd = (struct comp_data *)td->dev->priv_data;
*state = td;