linux/drivers/peci/core.c

// SPDX-License-Identifier: GPL-2.0-only
// Copyright (c) 2018-2021 Intel Corporation

#include <linux/bug.h>
#include <linux/device.h>
#include <linux/export.h>
#include <linux/idr.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/peci.h>
#include <linux/pm_runtime.h>
#include <linux/property.h>
#include <linux/slab.h>

#include "internal.h"

static DEFINE_IDA(peci_controller_ida);

static void peci_controller_dev_release(struct device *dev)
{}

const struct device_type peci_controller_type =;

int peci_controller_scan_devices(struct peci_controller *controller)
{}

static struct peci_controller *peci_controller_alloc(struct device *dev,
						     const struct peci_controller_ops *ops)
{}

static int unregister_child(struct device *dev, void *dummy)
{}

static void unregister_controller(void *_controller)
{}

/**
 * devm_peci_controller_add() - add PECI controller
 * @dev: device for devm operations
 * @ops: pointer to controller specific methods
 *
 * In final stage of its probe(), peci_controller driver calls
 * devm_peci_controller_add() to register itself with the PECI bus.
 *
 * Return: Pointer to the newly allocated controller or ERR_PTR() in case of failure.
 */
struct peci_controller *devm_peci_controller_add(struct device *dev,
						 const struct peci_controller_ops *ops)
{}
EXPORT_SYMBOL_NS_GPL();

static const struct peci_device_id *
peci_bus_match_device_id(const struct peci_device_id *id, struct peci_device *device)
{}

static int peci_bus_device_match(struct device *dev, const struct device_driver *drv)
{}

static int peci_bus_device_probe(struct device *dev)
{}

static void peci_bus_device_remove(struct device *dev)
{}

const struct bus_type peci_bus_type =;

static int __init peci_init(void)
{}
module_init();

static void __exit peci_exit(void)
{}
module_exit(peci_exit);

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