linux/sound/pci/hda/cirrus_scodec_test.c

// SPDX-License-Identifier: GPL-2.0-only
//
// KUnit test for the Cirrus side-codec library.
//
// Copyright (C) 2023 Cirrus Logic, Inc. and
//                    Cirrus Logic International Semiconductor Ltd.

#include <kunit/test.h>
#include <linux/gpio/driver.h>
#include <linux/module.h>
#include <linux/platform_device.h>

#include "cirrus_scodec.h"

struct cirrus_scodec_test_gpio {};

struct cirrus_scodec_test_priv {};

static int cirrus_scodec_test_gpio_get_direction(struct gpio_chip *chip,
						 unsigned int offset)
{}

static int cirrus_scodec_test_gpio_direction_in(struct gpio_chip *chip,
						unsigned int offset)
{}

static int cirrus_scodec_test_gpio_get(struct gpio_chip *chip, unsigned int offset)
{}

static int cirrus_scodec_test_gpio_direction_out(struct gpio_chip *chip,
						 unsigned int offset, int value)
{}

static void cirrus_scodec_test_gpio_set(struct gpio_chip *chip, unsigned int offset,
					int value)
{}

static int cirrus_scodec_test_gpio_set_config(struct gpio_chip *gc,
					      unsigned int offset,
					      unsigned long config)
{}

static const struct gpio_chip cirrus_scodec_test_gpio_chip =;

static int cirrus_scodec_test_gpio_probe(struct platform_device *pdev)
{}

static struct platform_driver cirrus_scodec_test_gpio_driver =;

/* software_node referencing the gpio driver */
static const struct software_node cirrus_scodec_test_gpio_swnode =;

static int cirrus_scodec_test_create_gpio(struct kunit *test)
{}

static void cirrus_scodec_test_set_gpio_ref_arg(struct software_node_ref_args *arg,
						int gpio_num)
{}

static int cirrus_scodec_test_set_spkid_swnode(struct kunit *test,
					       struct device *dev,
					       struct software_node_ref_args *args,
					       int num_args)
{}

struct cirrus_scodec_test_spkid_param {};

static void cirrus_scodec_test_spkid_parse(struct kunit *test)
{}

static void cirrus_scodec_test_no_spkid(struct kunit *test)
{}

static void cirrus_scodec_test_dev_release(struct device *dev)
{}

static int cirrus_scodec_test_case_init(struct kunit *test)
{}

static void cirrus_scodec_test_case_exit(struct kunit *test)
{}

static int cirrus_scodec_test_suite_init(struct kunit_suite *suite)
{}

static void cirrus_scodec_test_suite_exit(struct kunit_suite *suite)
{}

static const struct cirrus_scodec_test_spkid_param cirrus_scodec_test_spkid_param_cases[] =;

static void cirrus_scodec_test_spkid_param_desc(const struct cirrus_scodec_test_spkid_param *param,
						char *desc)
{}

KUNIT_ARRAY_PARAM(cirrus_scodec_test_spkid, cirrus_scodec_test_spkid_param_cases,
		  cirrus_scodec_test_spkid_param_desc);

static struct kunit_case cirrus_scodec_test_cases[] =;

static struct kunit_suite cirrus_scodec_test_suite =;

kunit_test_suite();

MODULE_IMPORT_NS();
MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();