linux/drivers/power/supply/goldfish_battery.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Power supply driver for the goldfish emulator
 *
 * Copyright (C) 2008 Google, Inc.
 * Copyright (C) 2012 Intel, Inc.
 * Copyright (C) 2013 Intel, Inc.
 * Author: Mike Lockwood <[email protected]>
 */

#include <linux/module.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/acpi.h>

struct goldfish_battery_data {};

#define GOLDFISH_BATTERY_READ(data, addr)
#define GOLDFISH_BATTERY_WRITE(data, addr, x)

enum {};


static int goldfish_ac_get_property(struct power_supply *psy,
			enum power_supply_property psp,
			union power_supply_propval *val)
{}

static int goldfish_battery_get_property(struct power_supply *psy,
				 enum power_supply_property psp,
				 union power_supply_propval *val)
{}

static enum power_supply_property goldfish_battery_props[] =;

static enum power_supply_property goldfish_ac_props[] =;

static irqreturn_t goldfish_battery_interrupt(int irq, void *dev_id)
{}

static const struct power_supply_desc battery_desc =;

static const struct power_supply_desc ac_desc =;

static int goldfish_battery_probe(struct platform_device *pdev)
{}

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

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

static struct platform_driver goldfish_battery_device =;
module_platform_driver();

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