linux/net/rfkill/rfkill-gpio.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (c) 2011, NVIDIA Corporation.
 */

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/rfkill.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/slab.h>
#include <linux/acpi.h>
#include <linux/gpio/consumer.h>

struct rfkill_gpio_data {};

static int rfkill_gpio_set_power(void *data, bool blocked)
{}

static const struct rfkill_ops rfkill_gpio_ops =;

static const struct acpi_gpio_params reset_gpios =;
static const struct acpi_gpio_params shutdown_gpios =;

static const struct acpi_gpio_mapping acpi_rfkill_default_gpios[] =;

static int rfkill_gpio_acpi_probe(struct device *dev,
				  struct rfkill_gpio_data *rfkill)
{}

static int rfkill_gpio_probe(struct platform_device *pdev)
{}

static void rfkill_gpio_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_ACPI
static const struct acpi_device_id rfkill_acpi_match[] =;
MODULE_DEVICE_TABLE(acpi, rfkill_acpi_match);
#endif

static const struct of_device_id rfkill_of_match[] __maybe_unused =;
MODULE_DEVICE_TABLE(of, rfkill_of_match);

static struct platform_driver rfkill_gpio_driver =;

module_platform_driver();

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